|
| 26 Dec 2013 01:43 PM |
Having issues with my GUI being centered..
Current Position
{.5,1}{.5,1)
Current Size {0,200}{0,50}
Does not appear to be centered. |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 26 Dec 2013 01:47 PM |
Read this. http://www.roblox.com/Forum/ShowPost.aspx?PostID=92839179 |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 01:48 PM |
Guis are positioned from the top-left of them.
So (0.5,-100,0.5,-25) I think. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 01:50 PM |
| Sorry, make the negatives positive. |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 26 Dec 2013 02:05 PM |
This would work for Position aswell?
{.5,-1}{.5,-1} |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 02:06 PM |
This isn't working D:
Or I'm completly lost.. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 02:11 PM |
and
{.25, 0},{.25, 0} does not center it.. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 26 Dec 2013 02:18 PM |
Ok, thats not working either ):
I have the screen GUI, and it is separately holding a frame and a text label. The Frame is fine I set its size to {1,1},{1,1} and it will always cover the players screen regardless of their screen size (Right?); but thats not the problem. I need the text label at the center of the persons screen regardless of the persons screen size. .25,0 does not do this. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 02:20 PM |
Lets say the frame in the center of the screen is 100,100 pixels. To set it to the center you would do:
frame.Position = UDim2.new(.5,-50,.5,-50) frame.Size = UDim2.new(0,100,0,100) |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 02:21 PM |
| So how WOuld I get perfect Size for every screen? |
|
|
| Report Abuse |
|
|