I’m trying to make a UI for build mode selection. However, it seems to appear higher than it should in game. I use a plugin to position GUIs but it only has the option to position in certain areas (top left, center, etc).
This UI is in an odd position and won’t remain proportional on other window sizes (like the others do).
An image of what I mean:
How can I make it appear correctly?
3 Likes
It’s a frame. The buttons are images.
The position of the frame is: {0.59, -574},{0.73, -9}
Aha, that may be the issue. If you use some offset parameters, that can create different results on different sized screens.
If you want the frame to be on the top of the white frame, then:
- Set the Anchor Point property of the blue frame to
0.5, 0
.
- If the blue frame is a child of the white frame then set the position of the blue frame to
0.5, 0}, {0, 0}
. Else, you can set the blue frame’s Anchor Point property to 0.5, 1
and its position to {0.5 0}, { 1 - the Y size of the white frame, 0}
.
This way it is centered in terms of X, but it is just above the white frame.
1 Like
Thanks!
Managed to get it to work by setting the AnchorPoint to 0.5, 1
, the Position of the Blue Frame to {0.49, 0},{0, 0}
and making the blue frame a child of the grey frame. (0.49 just because it missed out a little bit)
Thanks for your help!
2 Likes