Jump to content
Sign in to follow this  
Nordin

Dialog size

Recommended Posts

Try using in your dialog definition:

x = safeZoneX;

y = safeZoneY;

w = safeZoneW;

h = safeZoneH;

I'm expecting you to already have a working dialog using numbers for these.

Share this post


Link to post
Share on other sites

class foo :
{
   x = SafeZoneX; // x pos is on top left of screeen
   y = SafeZoneY; // y pos is on top left of screeen
   w = SafeZoneW; //returns the hole witdh of the screen.
   h = SafeZoneH; //returns the hole hight of the screen.
};

so if you want it to be like 25% size all time and in center, i think you could do something like

x = 0.5;
y = 0.5;
w = (25 * SafeZoneW) / 100;
h = (25 * SafeZoneH) / 100;  

edit: above code will set it 25% of the screen. tho it will increase/decrease size according to which aspect ratio you are using

Edited by nuxil

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×