Jump to content

Recommended Posts

Hello, I'm in the process of creating a player inv.
but every time I change the monitor resolution the windows or buttons in the game move.

does anyone have a solution?

enclosed is a button code
idc = 2015;
sizeEx = 0.020;
text = "";
x = 0.150;
y = 0.25;
w = 0.3;
h = 0.6;
};

can't you make it so that the windows adapt to the resolution?

what does the number in the brackets mean or how is it explained?
y = 0.80;
w = (5.25 / 40);

Share this post


Link to post
Share on other sites

You should choose a grid system that supports monitor resolution adaptation, preferably Pixel Grid.

Share this post


Link to post
Share on other sites
x = ((((90 * (getResolution select 0)) / 1920) * safeZoneW) / (getResolution select 0) + safeZoneX);
y = ((((185 * (getResolution select 1)) / 1080) * safeZoneH) / (getResolution select 1) + safeZoneY);
w = ((((61 * (getResolution select 0)) / 1920) * safeZoneW) / (getResolution select 0));
h = ((((50 * (getResolution select 1)) / 1080) * safeZoneH) / (getResolution select 1));

Where the number to the left represents one pixel on a 1920/1080 monitor

Share this post


Link to post
Share on other sites

So I've done it like this now, everything is fine with the background, but as soon as I click the button it hangs on the top of the window and doesn't go down, see attachment

Share this post


Link to post
Share on other sites

I can't see any attachment, if you can send the hpp file i could have a look at it.

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

×