[RETRACTED] Absolute maximum GUI size

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
modo_lv
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Jan 12, 2021 2:08 pm
Contact:

[RETRACTED] Absolute maximum GUI size

Post by modo_lv »

Currently, increasing UI scaling increases all GUI sizes, including maximum width & height. In case of trying to prevent a window from overlapping other UI elements, this achieves the opposite effect — max. size 600 @ 100% becomes max. size 1200 on 200%, ensuring that it will overlap other elements, given large enough contents.

I understand that maximum sizes need to scale with UI in order to keep related elements scaling properly, but maybe there could be an additional parameter for non-scaled maximums? "absolute_maximal_height" or something?
Last edited by modo_lv on Sun Jan 24, 2021 6:01 pm, edited 1 time in total.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13226
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Absolute maximum GUI size

Post by Rseding91 »

I don't think you quite understand how GUI is supposed to work; you never care about scale. Everything functions in terms of 100% scale and you simply multiply your values by the current scale. Past that; what the actual size ends up as isn't meant to matter. The scale is exposed to Lua.
If you want to get ahold of me I'm almost always on Discord.

User avatar
modo_lv
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Jan 12, 2021 2:08 pm
Contact:

Re: Absolute maximum GUI size

Post by modo_lv »

Yes, Loewchen explained to me in another thread that upscaling isn't supposed to work properly on regular (1080p) displays, it's only for 2K, 4K and other large sizes. So what I was trying to do is just as unsupported; it was based on a misunderstanding about the design goals of UI scaling.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13226
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [RETRACTED] Absolute maximum GUI size

Post by Rseding91 »

You *could* try to dynamically scale your GUI based off the resolution and scale but the base game largely doesn't. So if it's something you want to do; you should have all the information you need: resolution and scale.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Modding interface requests”