Hey Guys, if you want your gui exactly place at the center whatever is its size, try my formulas.
Gui Centering (Offset based)
set the scale to 0.5 and negative of half the offset size.
Gui Centering (Scale based)
0.5 minus ( half of the scale size )
Both works for X and Y.
To stick a gui exactly on the left or right try these.
LEFT
always set the X Scale to ZERO.
Right (Scale based)
ONE minus its X Scale.
Right (Offset based)
set the X Scale to ONE and its X Offset negative to its X Offset size.
To stick a gui on top or bellow...
Top
always set the Y Scale to ZERO.
Down (Scale based)
1 minus its Y Scale
Down (Offset based)
set the Y Scale to 1 and Y Offset negative to its Y Offset size.
Any questions? |