entity gui always above of player.center gui ?

Place to get help with not working mods / modding interface.
Post Reply
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

entity gui always above of player.center gui ?

Post by mophydeen »

When the entity gui is opened, the player.center gui is under the entity. Is there a way to put the center gui on top? Or hide the entity gui?

mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

Re: entity gui always above of player.center gui ?

Post by mophydeen »

eg.
1 click train > train gui opens
2 player.opened > returns train entity
3 player.center.add > adds a frame in the middle of the screen

Problem: the newly created frame is behind the train gui.

potential fixes:
- a way to close the gui in code (preferred)
- put new gui elements above old ones

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: entity gui always above of player.center gui ?

Post by aubergine18 »

Not currently, the layering is hard-coded.

As for closing entity GUI, I think you could possibly deselect the entity (something like `player.selected = nil` but haven't tried).
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

Post Reply

Return to “Modding help”