Request for on_entity_gui_opened, on_entity_gui_closed

Post Reply
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Request for on_entity_gui_opened, on_entity_gui_closed

Post 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. ;)


User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: Request for on_entity_gui_opened, on_entity_gui_closed

Post 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. :?

Boodals
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

Re: Request for on_entity_gui_opened, on_entity_gui_closed

Post by Boodals »

This was implemented a long time ago.

Post Reply

Return to “Implemented mod requests”