Page 1 of 1

entity gui always above of player.center gui ?

Posted: Sun Jan 15, 2017 2:07 pm
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?

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

Posted: Tue Jan 17, 2017 8:44 pm
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

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

Posted: Wed Feb 01, 2017 11:17 pm
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).