Page 1 of 1

Request for on_entity_gui_opened, on_entity_gui_closed

Posted: Fri Jul 08, 2016 3:25 am
by Mooncat
In short:
Request for adding events like on_entity_gui_opened, on_entity_gui_closed.

Long:
I wanted to know when the default GUI of an entity is opened or closed, so I can show or hide my custom GUI for that entity.
I did a brief research on this topic but have no luck besides finding some hacky solutions in 0.12 like Wrench or WrenchFu. (I call them hacky because they introduce an extra item in order to show the custom GUI which I think is inconvenient to the players.) Forgive me if I missed anything.

If it is possible, I would also want to know when its circuit network/logistic network GUI is opened/closed since they are hidden by default in 0.13, and my custom GUI will be something about the network.

I believe that once the events are added, we can see mods that have well designed custom GUI bound with their entities. ;)

Re: Request for on_entity_gui_opened, on_entity_gui_closed

Posted: Fri Jul 08, 2016 8:46 am
by Choumiko
Beat you to it once again :D
viewtopic.php?f=28&t=24669

Re: Request for on_entity_gui_opened, on_entity_gui_closed

Posted: Fri Jul 08, 2016 6:01 pm
by Mooncat
Choumiko wrote:Beat you to it once again :D
viewtopic.php?f=28&t=24669
Image

hm... Do you think we would also need to request APIs for making draggable GUI? I haven't seen any mod that have draggable custom GUI. :?

Re: Request for on_entity_gui_opened, on_entity_gui_closed

Posted: Mon Jul 22, 2019 10:16 am
by Boodals
This was implemented a long time ago.