inconsistent gui sizes

Place to get help with not working mods / modding interface.
Post Reply
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 400
Joined: Thu Dec 21, 2017 8:02 am
Contact:

inconsistent gui sizes

Post by ownlyme »

I noticed that the gui is heavily affected by the window size of the game.
For example you set the maximal and minimal_width and height of an element to 100, change the window size and create another one - the size of the new gui element will be different
Attachments
guibug.png
guibug.png (25.91 KiB) Viewed 698 times
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: inconsistent gui sizes

Post by Klonan »

The GUI is being scaled by the game,
You can set gui.style.scaleable = false to prevent it

In 0.17 the auto scaling is removed completely, so this issue is resolved in both cases

User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 400
Joined: Thu Dec 21, 2017 8:02 am
Contact:

Re: inconsistent gui sizes

Post by ownlyme »

the scaleable property does not work on labels, at least not on the text inside.
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance

Post Reply

Return to “Modding help”