|
| 04 Apr 2015 07:32 PM |
| How come for a gui if I set the size to UDim2.new(1,0,1,0) It doesn't reach the tips of the screen it goes way over so it would be precisely UDim2.new(8.78,0,8.78,0) for me. Also, how come when moving a frame .5 isn't the middle of the screen it's more like 5/6 of the screen. |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 04 Apr 2015 07:33 PM |
You must have a funky screen, I wouldn't know the problem as I haven't touched GUIs in a while.
I take it roblox screwed up an update and now we are getting an influx (presumably 3 threads so far)
about Guis scale not being correct |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 04 Apr 2015 07:36 PM |
When you position a frame, the position is where the top left corner of the frame is located. If you want the gui to look centered, then you need to use the offset.
For example, if a frame's size was {0, 200, 0, 200}, then for a correctly centered frame the position would need to be {.5, -100, .5, -100} |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2015 07:37 PM |
| Why does it need the -100's? |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 04 Apr 2015 07:41 PM |
| That is the offset. I am basically positioning the frame's top left corner to the center of the screen. Obviously that makes it look like it is not centered so we need to add the -100s to center it. If you don't have it, the frame will be too much towards the bottom and right. 100 is half of the frame size so we just take that away from the position. |
|
|
| Report Abuse |
|
|
| |
|