Page 1 of 1

Allow placing GUI elements relative to the Tool Window

Posted: Mon Sep 21, 2026 7:54 am
by MeteorSwarm
Maraxsis contains an oxygen meter GUI element that is currently hardcoded to a particular pixel position relative to the bottom-left corner of the screen. This element is intended to be placed relative to the player's Tool Window, but that is not currently possible, so a hardcoded pixel position is used instead.
09-21-2026, 00-46-17.png
09-21-2026, 00-46-17.png (10.77 MiB) Viewed 234 times
This solution becomes unworkable when the player enables the "Tool window next to quickbar" interface setting, which moves the tool window away from where Maraxsis assumes the Tool Window will be.
09-21-2026, 00-48-06.png
09-21-2026, 00-48-06.png (10.09 MiB) Viewed 234 times
The ideal solution to this problem is to allow us to place GUI elements relative to the Tool Window, causing these GUI elements to automatically shift relative to the Tool Window, making hacks like specific pixel offsets obsolete.

https://github.com/FluidNatalie/maraxsi ... ng.lua#L29

Re: Allow placing GUI elements relative to the Tool Window

Posted: Mon Sep 21, 2026 7:58 am
by FluidNatalie
+1

Re: Allow placing GUI elements relative to the Tool Window

Posted: Mon Sep 21, 2026 8:26 am
by protocol_1903
+1, I want to use it for a similar life support UI and another small UI

Re: Allow placing GUI elements relative to the Tool Window

Posted: Mon Sep 21, 2026 1:07 pm
by Osmo
+1, this one is annoying to deal with since you can't read its position, only assume it'll be in one or the other. Would be useful for https://mods.factorio.com/mod/hide-uis as well.