steam-76561198121721980 0 Posted June 24 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
Schatten 280 Posted June 24 You should choose a grid system that supports monitor resolution adaptation, preferably Pixel Grid. Share this post Link to post Share on other sites
steam-76561198121721980 0 Posted June 24 please give an example! thanks for your effort Share this post Link to post Share on other sites
Rouglee 7 Posted June 24 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
steam-76561198121721980 0 Posted June 25 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
Rouglee 7 Posted June 25 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