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

This subforum contains all the issues which we already resolved.
User avatar
mickael9
Fast Inserter
Fast Inserter
Posts: 112
Joined: Mon Mar 14, 2016 4:04 am
Contact:

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

Post 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 1893 times
After changing controller (clicking God! button):
under.png
under.png (524.02 KiB) Viewed 1893 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.
Attachments
gui-overlay_0.0.1.zip
(1.4 KiB) Downloaded 99 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15997
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
mickael9
Fast Inserter
Fast Inserter
Posts: 112
Joined: Mon Mar 14, 2016 4:04 am
Contact:

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

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

Return to “Resolved Problems and Bugs”