onStorageClosed

  • English

We've posted an important announcement regarding the current situation and the future of the game: Announcement

  • We will keep this in mind for the new version :) However, if you want to add a special window which is only visible in storage UIs, for example, you could just attach your GuiElement to the storage UI. This part of the API is a little obscure, but when adding a GuiElement to the player, you can specify a parent (more precisely, you have to pass the name of the parent). The name of the storage UI is "Storage", so if you call player.addGuiElement(GuiElement, "Storage"), your GuiElement will only be visible if the storage UI is currently active. Not sure if that helps in this case.