[Solved] Exclude LuaGuiElement from 'UI Scale' setting

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
thesixthroc
Fast Inserter
Fast Inserter
Posts: 122
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

[Solved] Exclude LuaGuiElement from 'UI Scale' setting

Post by thesixthroc »

This request may sound odd, but it seems to opens the door to doing powerful things with GUIs.

As you can see from the attached video, it is possible to make seamless intersurface portals using GUIs. However, the effect of the user changing their UI scale has on cameras means it cannot be made to work for all users.

I am not sure if there is any better alternative API. Perhaps it could apply only to cameras. I assume the game state cannot understand these user settings at runtime.
Last edited by thesixthroc on Wed Oct 22, 2025 12:26 am, edited 2 times in total.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 356
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: [2.0.71] Exclude LuaGuiElement from 'UI Scale' setting

Post by protocol_1903 »

Try these, the first is the UI scale set in the game and the second is the UI scale of the monitor based on the device settings

https://lua-api.factorio.com/latest/cla ... play_scale
https://lua-api.factorio.com/latest/cla ... sity_scale
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
thesixthroc
Fast Inserter
Fast Inserter
Posts: 122
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: [Solved] Exclude LuaGuiElement from 'UI Scale' setting

Post by thesixthroc »

Thanks, that does the trick.
Post Reply

Return to “Modding interface requests”