Page 1 of 1

[Rseding91] [for 0.16] [0.14.4] Changing controller puts bottom GUI over others

Posted: Tue Sep 06, 2016 7:54 pm
by mickael9
After the player's controller is changed (via player.set_controller) to god, the bottom GUI area seems to increase in altitude and draws over other GUI elements, such as those in the center GUI.

Normal controller:
over.png
over.png (525.16 KiB) Viewed 1891 times
After changing controller (clicking God! button):
under.png
under.png (524.02 KiB) Viewed 1891 times
Recreating the frame doesn't fix the problem as seen by cliking the Toggle frame button.

I don't know if there is a concept of altitude/z-index in the GUI system, but I think the center gui should stay on top of everything else.

Re: [0.14.4] [Rseding91] Changing controller puts bottom GUI over others

Posted: Fri Sep 16, 2016 6:34 pm
by Rseding91
When you say "I think the center gui should stay on top of everything else" what exactly do you mean?

I can make the center GUI always-on-top but then it will be on top of even your character GUI (when you hit E) or any other GUI you open.

Re: [0.14.4] [Rseding91] Changing controller puts bottom GUI over others

Posted: Fri Sep 16, 2016 7:39 pm
by mickael9
I think the mod center GUI should be on top of the 4 side GUIs. Like this (by altitude) :

Either :

3 Game center GUI (inventory)
2 Mod center GUI
1 All side GUIs (game and mod)

Or

3 Mod center GUI
2 Game center GUI (inventory)
1 All side GUIs (game and mod)

I honestly don't know which is better, but some game GUIs obviously need to always be on top (like the Escape menu), so perhaps it's easier to implement if all center game GUIs are on top of the mod center GUI.

The ideal answer would be "both" with the possibility to set the altitude of a GUI item upon its creation but is it worth the effort?