Page 1 of 1

make gui element ignore other elements in parent / x/y position of elements

Posted: Mon May 20, 2019 9:14 pm
by ownlyme
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:
manabar.png
manabar.png (7.22 MiB) Viewed 1394 times
Everything seems fine, but now let's add a frame...
frame.png
frame.png (6.99 MiB) Viewed 1394 times
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

Re: make gui element ignore other elements in parent / x/y position of elements

Posted: Tue May 21, 2019 4:39 pm
by eradicator
We're all still waiting for screen.add{}

viewtopic.php?p=348718#p348718

Re: make gui element ignore other elements in parent / x/y position of elements

Posted: Mon Jul 22, 2019 9:43 am
by Bilka
This has been implemented for the next version of 0.17. See viewtopic.php?f=65&t=46487#p443704