Just throwing this out there: It would be stupendously amazing if we could position GUI elements relative to the "static" GUI elements that are almost always shown. For example, the top-right GUI, the quickbar, shortcut bar, guns/ammo GUI, map editor GUI, etc. Right now it is possible to position elements like this by using hardcoded constants combined with display resolution and scale, but it is a very ugly method that is prone to error.
Thanks!
Relative GUI for static GUI elements
Relative GUI for static GUI elements
Don't forget, you're here forever.
Re: Relative GUI for static GUI elements
+1
I would love to attach some gui to the hotbar, such as a custom additional progress bar (alongside health, shield, mining progress...) and other uses.
I would love to attach some gui to the hotbar, such as a custom additional progress bar (alongside health, shield, mining progress...) and other uses.
- SupplyDepoo
- Filter Inserter
- Posts: 306
- Joined: Sat Oct 29, 2016 8:42 pm
- Contact:
Re: Relative GUI for static GUI elements
Is this possible yet?
Re: Relative GUI for static GUI elements
+1 maybe now that raiguard is on the other side of the "fence"? 
The relative gui system is so cool and it's so annoying to fall back to easily broken coordinate hacks

The relative gui system is so cool and it's so annoying to fall back to easily broken coordinate hacks

Re: Relative GUI for static GUI elements
we already have player.gui.relative.add(...) .anchor = https://lua-api.factorio.com/latest/def ... e_gui_type
what we REALLY need is displaying these relative guis *above* the anchor gui.
currently they can only be displayed to the side...
for example you could display a bunch of extra stats in a crafting machine window, or i didn't need to manually calculate the inventory position for my https://mods.factorio.com/mod/market2 which is a HUGE hassle, doesnt look perfect and is generally a ridiculous solution.
that's what i tried to propose in player.gui.relative[].bring_to_front() ?
maybe i didn't explain it well
I've been waiting for this for 3 years. PLEASE make it happen
what we REALLY need is displaying these relative guis *above* the anchor gui.
currently they can only be displayed to the side...
for example you could display a bunch of extra stats in a crafting machine window, or i didn't need to manually calculate the inventory position for my https://mods.factorio.com/mod/market2 which is a HUGE hassle, doesnt look perfect and is generally a ridiculous solution.
that's what i tried to propose in player.gui.relative[].bring_to_front() ?
maybe i didn't explain it well
I've been waiting for this for 3 years. PLEASE make it happen
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Re: Relative GUI for static GUI elements
+1
I also want an possibillity to displaying these relative guis *above* the anchor gui.
I also want an possibillity to displaying these relative guis *above* the anchor gui.
My Mods: Picklocks Fusion Power | Picklocks Inserter | Picklocks Lithium Polymer Accumulator | Picklocks rocket silo stats | Picklocks Set Inventory Filters | Picklocks QuickBar Import/Export | Picklocks Nauvis Cliff-Explosives