|
| 31 Dec 2015 03:25 PM |
So I have a sniper for a game I am making, and when you zoom ina scope GUI covers the screen.
I got it centered, but I want it to stay round in the center (where the actualy transparent round scope is. Basically, I want the GUI not to stretch based on the window size. Any ideas on how to do this? |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 03:27 PM |
An easier way to state this:
I do not want the GUI to stretch, I want it to crop down based on the screen size. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 03:29 PM |
Use scale.
{Scale,Offset,Scale,Offset} |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 03:30 PM |
http://wiki.roblox.com/index.php?title=API:Class/ImageLabel/SliceCenter http://wiki.roblox.com/index.php?title=API:Class/ImageLabel/ScaleType
Sorry for forwarding links to the wiki, but that is pretty much it. Basically, it keeps the "center" portion of the image scaled within it's aspect ratio and everything else is considered to be the border. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 03:33 PM |
| Thanks, I feel kinda stupid bc that pretty simple, but eh. |
|
|
| Report Abuse |
|
|