When you display stuff in gui.center with top_margin etc, you quickly run into issues when other gui elements use the same parent.
for example this cute little mana bar:
Everything seems fine, but now let's add a frame...
And suddenly everything's really screwed up...
Maybe you could add a flag like ".ignore_other_elements" or x/y coordinates of elements...
please also notice my other thread about displaying elements on top of the game's gui (not related to this particular mod)
viewtopic.php?f=28&t=70866
make gui element ignore other elements in parent / x/y position of elements
make gui element ignore other elements in parent / x/y position of elements
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
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: make gui element ignore other elements in parent / x/y position of elements
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: make gui element ignore other elements in parent / x/y position of elements
This has been implemented for the next version of 0.17. See viewtopic.php?f=65&t=46487#p443704
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.