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.
[Solved] Exclude LuaGuiElement from 'UI Scale' setting
-
- Fast Inserter
- Posts: 122
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
[Solved] Exclude LuaGuiElement from 'UI Scale' setting
Last edited by thesixthroc on Wed Oct 22, 2025 12:26 am, edited 2 times in total.
- protocol_1903
- Filter Inserter
- Posts: 356
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: [2.0.71] Exclude LuaGuiElement from 'UI Scale' setting
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
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
https://mods.factorio.com/user/protocol_1903
-
- Fast Inserter
- Posts: 122
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
Re: [Solved] Exclude LuaGuiElement from 'UI Scale' setting
Thanks, that does the trick.