GUI Close event

Started by crimson_fluff on

Topic category: Feature requests and ideas for MCreator

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI Close event
Thu, 11/21/2019 - 21:06 (edited)

Hi I searched the forum for this but didnt find anything, hopefully its not a dupe

As the title suggests can we please have a 'GUI Closed' Event/Trigger.  I have a block that deletes items, its a trashcan.  When the GUI is open I want to pause the trashcan until the GUI is closed.  This is easy enough for me to do, except I will never know when the GUI is closed and so cant unpause my trashcan

I realise I could have a button in the GUI linked to a Procedure that closes the GUI and unpauses my trashcan, BUT if the player presses ESC and closes the GUI, my trashcan will remain forever paused

Thank you

Edited by crimson_fluff on Thu, 11/21/2019 - 21:06
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Meanwhile, you can just…
Fri, 11/22/2019 - 08:08

Meanwhile, you can just create a button in the trashcan GUI that clears every slot when clicking.

Useful if you have the bad reflex of closing the GUI when you place something in the wrong slot, like me.

Don't forget to make the block keep the items in its internal inventory.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And if you want to play a…
Wed, 06/23/2021 - 18:56

And if you want to play a sound on GUI close?

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This trigger should have…
Sun, 07/04/2021 - 16:50

This trigger should have existed at least since 2020.5.