summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorzeuner <github@quidecco.de>2018-12-02 16:05:56 +0100
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-12-02 16:05:56 +0100
commit42166fff7454aad64dfcd60a38bb5fcb75499243 (patch)
tree09e0cf79c1b9c9e53a96e04ffa01ba38d921a609 /doc
parentf6662b01ac4b15e6e339007a2cacf69f331007aa (diff)
downloadminetest-42166fff7454aad64dfcd60a38bb5fcb75499243.tar.gz
minetest-42166fff7454aad64dfcd60a38bb5fcb75499243.tar.bz2
minetest-42166fff7454aad64dfcd60a38bb5fcb75499243.zip
Document which formspec fields are sent (#7717)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index a07356d00..ca9133b1a 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3667,7 +3667,11 @@ Call these functions only at load time!
* Return `true` to mark the message as handled, which means that it will
not be sent to other players.
* `minetest.register_on_player_receive_fields(func(player, formname, fields))`
- * Called when a button is pressed in player's inventory form
+ * Called when a button is pressed in player's inventory form, when form
+ values are submitted or when the form is actively closed by the player.
+ * Fields are sent for formspec elements which define a field, and the "quit"
+ field is sent when actively closing the form by mouse click, keypress or
+ through a button_exit[] element.
* Newest functions are called first
* If function returns `true`, remaining functions are not called
* `minetest.register_on_craft(func(itemstack, player, old_craft_grid, craft_inv))`