Advertisement
CloneTrooper1019

Untitled

May 28th, 2014
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Get the absolute height of the user's screen
  2. Multiply it by a decimal between 0 and 1 (0 = 0% of the screen, 1 = 100% of the screen) depending on the scale you want it at.
  3. Set the offset size to that number
  4. And for the position, you want that number/-2
  5.  
  6. Position = 0.5,number/-2,0.5,number/-2
  7. That is, if you want the screen centered. You can change the 0.5 coordinates to shift its offset.
  8.  
  9. You have to update this every time the absolute size of the GUI changes.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement