[0.16.22] on_gui_closed documentation is scrambled.
Posted: Fri Feb 09, 2018 12:51 am
I assume that the two bold half-sentences belong together. But even with that assumption i don't really understand what "the original requested GUI" is supposed to be here. Unless the "last" (currently upper bold half) bit should read "force close the old opened GUI"? This clearly needs rephrasing. :PDocumentation wrote: on_gui_closed
Called when the player closes the GUI they have open.
the game will force close the new opened GUI without notice to ensure the original requested GUI is opened.
Contains
player_index :: uint: The player.
gui_type :: defines.gui_type: The GUI type that was open.
entity :: LuaEntity (optional): The entity that was open
item :: LuaItemStack (optional): The item that was open
equipment :: LuaEquipment (optional): The equipment that was open
other_player :: LuaPlayer (optional): The other player that was open
element :: LuaGuiElement (optional): The custom GUI element that was open
Note: This is only called if the player explicitly closed the GUI.
Note: It's not advised to open any other GUI during this event because if this is run as a request to open a different GUI