drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 14 Aug 2015 03:37 AM |
I have a gui that I use for a game and it covers the whole computer screen and fits perfectly. However, on the phone app it does not fit the screen. Is there a way I could make the frame automatically fit the screen? Also my gui is in starter gui and is not in workspace functioning on a script.
Does anyone have a script or code that could fix this? Thank you, I really need the help; this new phone app thing confuses me but I want my game to be playable on all devices. |
|
|
| Report Abuse |
|
|
Chrapnel
|
  |
| Joined: 01 Feb 2014 |
| Total Posts: 951 |
|
|
| 14 Aug 2015 03:52 AM |
| Set the size of the GUI to (1,0,1,0) :) |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2015 03:53 AM |
Only edit the scale, not the offset. Example:
{0.1, 0}, {0.1, 0} is 1/10 of the screen |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2015 03:55 AM |
| @Start its actually 1/100 of the screen |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2015 04:04 AM |
1, 0, 1, 0
That will cover any screen.
IDC what thing it is it covers the whole screen. |
|
|
| Report Abuse |
|
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 14 Aug 2015 11:02 AM |
| I realize it covers the whole screen but I want it to fit any screen too. Is that possible? |
|
|
| Report Abuse |
|
|
DevUndead
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 558 |
|
|
| 14 Aug 2015 11:14 AM |
In GUI sizing and positioning you have a table of two int values, the first bring relative size, and the seconded being non-relative.
So say you wanted to resize your GUI relative to the screen, and you wanted it to cover half the screen. You would take the first numbers of the two (being x and y) and make that number .5
Ex: {0.5,0}, {0.5,0}
This makes the GUI half( or 0.5 ) of what the current screen is; however, if you wanted it to just resize you would use the seconded numbers which I don't recommend.
Ex {0,0.5}, {0,0.5} The .5 being Robloxs units. I dont know what they use. |
|
|
| Report Abuse |
|
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 14 Aug 2015 05:50 PM |
| So if I do int values of (1,0) and (1,0) it will fit the whole screen no matter the size of the screen? |
|
|
| Report Abuse |
|
|
DevUndead
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 558 |
|
| |
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 14 Aug 2015 07:38 PM |
| If I have a frame that fits the whole screen with an int value of (1,0) and (1,0) then where would I place my text button using int values to make it center on any screen? |
|
|
| Report Abuse |
|
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 14 Aug 2015 07:39 PM |
| Oh and thank you for your help so far. |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
| |
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 14 Aug 2015 11:32 PM |
| Would frame size effect that though? |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 15 Aug 2015 12:24 AM |
yes so adjust by half the frame size
|
|
|
| Report Abuse |
|
|