|
| 28 Nov 2017 08:37 PM |
https://www.youtube.com/watch?v=k8NP-dqByp4
How can I basically do this but with size? I am trying to put a frame in the middle of my screen and have the size work the same way. So it fits on all screens evenly. |
|
|
| Report Abuse |
|
|
200Ethan
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 302 |
|
|
| 28 Nov 2017 08:39 PM |
You get two pairs when you look in the size property {xR,xO},{yR,yO} xR is the X relative to the player's screen. xO is the added size in pixels. yR is the Y relative to the player's screen. yO is the added size in pixels. |
|
|
| Report Abuse |
|
|
200Ethan
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 302 |
|
|
| 28 Nov 2017 08:41 PM |
| Didn't watch video, sorry if my answer wasn't what you were looking for. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 08:44 PM |
| Ya. Doesn't really help :L |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 08:49 PM |
Don't use offset, use scale for both positioning and sizing, there is also a UI Editor button in studio which also helps with positioning gui's to fit all screens and sizing them, it's very very useful.
|
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 08:50 PM |
It's possible using the Offset of a GUI. For example, when you set these values in a GUI:
Size = UDim2.new(.8, 0, .8, 0) Position = UDim2.new(.1, 0, .1, 0)
Or if you want it smaller, such as .5x.5, then you'd:
Size = UDim2.new(.5, 0, .5, 0) Position = UDim2.new(.25, 0, .25, 0)
And that'll fit in the middle of the screen. For other work, however, you'd have to go through trial and error to accomplish how you want your GUI to be like. Good luck. :) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2017 08:53 AM |
| For some reason when I use those small values, in game, it'll be way bigger :/ |
|
|
| Report Abuse |
|
|
Vulkarin
|
  |
| Joined: 17 Mar 2013 |
| Total Posts: 282 |
|
|
| 29 Nov 2017 08:55 AM |
It's based on your screen...in studio when you have explorer properties output etc etc open its only making your screen smaller and smaller compared to when you actually join the game
|
|
|
| Report Abuse |
|
|