Allow placing GUI elements relative to the Tool Window

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
MeteorSwarm
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Thu Sep 25, 2025 10:49 pm
Contact:

Allow placing GUI elements relative to the Tool Window

Post 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 231 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 231 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
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 566
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Allow placing GUI elements relative to the Tool Window

Post by protocol_1903 »

+1, I want to use it for a similar life support UI and another small UI
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 363
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Allow placing GUI elements relative to the Tool Window

Post 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.
Post Reply

Return to “Modding interface requests”