[0.16.22] on_gui_closed documentation is scrambled.

This subforum contains all the issues which we already resolved.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[0.16.22] on_gui_closed documentation is scrambled.

Post by eradicator »

Documentation 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
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. :P
Rseding91
Factorio Staff
Factorio Staff
Posts: 16048
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.22] on_gui_closed documentation is scrambled.

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.16.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”