Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My GUI position is off when I minimize it a bit? I am using offset for size.

Asked by 9 years ago

Hello, I have a previous question here:

https://scriptinghelpers.org/questions/15846/how-do-i-keep-screen-size-of-guis-constant-even-if-they-are-resized

I solved the problem of different sizes whenever I resize/minimize the screen but now there is another problem. Whenever I resize/minimize my screen a bit, my gui's position is off and it's obvious. How can I make it so that the SIZE and the POSITION are constant whether the ROBLOX window is maximized or minimized?

1 answer

Log in to vote
1
Answered by 9 years ago

This is what each number represents for the Size AND Position under properties. First of all, This is not a scripting question. Anyway, (0,0,0,0) The first two zero's are the X axis and the last 2 zero's are the Y axis. The first Zero is XScale. What is scale? This size will be to scale on any players screen. The second Zero is XOffset. This is not scaled to screen but is always the same measurement which I think is Pixels. So it will not change due to the players screen.

The Third Zero is YScale The fourth Zero is Y Offset

Do not forget that Scale is only between 0-1 0 = Nothing 1= Whole Screen

I believe what you want is JUST XScale and YScale to be used. Make sure their are no number in X or YOffset. When you take out a GUI, it usually appears on screen as XOffset- 200 Yoffset- 100 (Depending on Class).

The same rules follow for Position. First Zero is XScale... and So on.

0
You can do Decimals for Scale ( 0.1 0.2 0.3 0.4... etc) alphawolvess 1784 — 9y
0
Okay I believe that I solved this problem. The answer is this: for size to be constant on all screens whether the window is maximized or not: use offsets. For positions to look the same on all screens, use scale. That is, if you have a gui that has a parent then do that. However, if you have an independent gui overlayed on another independent gui frame/etcs then it's going to look awkward. Anyways Arithmeticity 167 — 9y
Ad

Answer this question