mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Document which formspec fields are sent (#7717)
This commit is contained in:
parent
f6662b01ac
commit
42166fff74
1 changed files with 5 additions and 1 deletions
|
@ -3667,7 +3667,11 @@ Call these functions only at load time!
|
||||||
* Return `true` to mark the message as handled, which means that it will
|
* Return `true` to mark the message as handled, which means that it will
|
||||||
not be sent to other players.
|
not be sent to other players.
|
||||||
* `minetest.register_on_player_receive_fields(func(player, formname, fields))`
|
* `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
|
* Newest functions are called first
|
||||||
* If function returns `true`, remaining functions are not called
|
* If function returns `true`, remaining functions are not called
|
||||||
* `minetest.register_on_craft(func(itemstack, player, old_craft_grid, craft_inv))`
|
* `minetest.register_on_craft(func(itemstack, player, old_craft_grid, craft_inv))`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue