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

Simple question for how GUI size and position work?

Asked by 8 years ago

So when making GUIs there are more than two sets of numbers for Size and Position. They both move and resize the object but I know they do different thing I'm just not sure what. Could someone explain?

2 answers

Log in to vote
1
Answered by 8 years ago

With size & position there are two values, X and Y to if your Size is set to {0, 00},{0,00} then the first part of that is the X (Left + Right) and the other one is the Y (Up and down). Then you have the scale + offset which appears as the numbers, the first numbers in {0,0} are the scale (where you can use stuff like .5, ect) and then you have the second numbers, the offset. The default offset for X and Y is 100, so it appears like a cube, however you can re-size it, I hope this answer helps; If it doesn't please tell my why, thanks :)

0
For example, the position of a GUI would look like this in the properties, (0,0)(0,0) We only need (0,0) for the position. Why do we have two sets of numbers? I understand how X and Y works but what's the reason for the extra (0,0)? Maybe you answered my question and I didn't understand. But I really just want to know what would you use these for. Like, why would I use the first (0,0) instead of t User#11440 120 — 8y
0
-he second (0,0)? XD User#11440 120 — 8y
0
They're both the Scale & Offset, I explained it in my question, the scale allows you to do .5, ect and the offest doesn't. Its quite complicated to explain, I'll think of a way to explain it. User#8983 0 — 8y
0
Well, I can say that the offset is alot more of a smaller number, so the offset makes a very small difference compared to the Scale. Unless you mean why there are two (0,0) in the main position, or why there are two under X/Y. User#8983 0 — 8y
View all comments (2 more)
0
I think I get what you're trying to say. Thanks for the explaination! User#11440 120 — 8y
0
No problem, please give click the little ^ button on my comment, it really helps me & motivates me to keep helping people on the site. User#8983 0 — 8y
Ad
Log in to vote
1
Answered by 8 years ago

Wfvj,The Left Number Are For Downing The Position/Size And The Right Number Are For Lefting The Position/Size

0
I: Yeah, I know. But next to that are two more set User#11440 120 — 8y
0
The Right Number For Big Number Like {1, 0} 1 = 10 And The Left Number Are For Little Number Like {0, 50} It Will Make The Gui Moving/Bigger A Little Bit MArzalAlBuchariZ 33 — 8y
0
Is that all it does? I thought one did something different. Is it just bigger? That would be weird. User#11440 120 — 8y
0
Yeah MArzalAlBuchariZ 33 — 8y
View all comments (3 more)
0
But Did Are You Understand? MArzalAlBuchariZ 33 — 8y
0
I'm still failing to understand why the developers did this... But yeah sorta. User#11440 120 — 8y
0
:c Ok MArzalAlBuchariZ 33 — 8y

Answer this question