About Store Forum Documentation Contact



Post Reply 
(Solved) How to fix the GUI size without scaling
Author Message
dylantan Offline
Member

Post: #1
(Solved) How to fix the GUI size without scaling
I have a problem and seeking your help on this. In some games, the GUI of the game are in fixed size (example 100x100 px) and when the screen resolution changed (say example from 1024x780 to 1200x1024) the GUI will always remain the same size (100x100px) when although it would look smaller in the higher resolution. However for my case, when we change the screen resolution, the GUI scaled along with it. I seeking your advice on how we can make permanent size of the GUI without the scaling issue.

Thanks in advance ppl smile
(This post was last modified: 03-24-2013 06:46 AM by dylantan.)
03-23-2013 04:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
TBJokers Offline
Member

Post: #2
RE: How to fix the GUI size without scaling
D.scale(600 / (float)D.y()); put that in your main update loop and the gui will always be same scale smile

Man, it's always that semicolon...
03-23-2013 05:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
dylantan Offline
Member

Post: #3
RE: How to fix the GUI size without scaling
Thanks TBJokers. I will try this and let you know if this work smile

EDIT: Its working perfectly well now. This is what we wanted smile Thanks man
(This post was last modified: 03-24-2013 06:46 AM by dylantan.)
03-24-2013 03:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply