1
0
mirror of https://github.com/minetest/minetest.git synced 2025-06-30 23:20:22 +02:00

Fix buttons not working for Lua-triggered formspecs

This commit is contained in:
sapier
2013-01-03 17:59:28 +00:00
committed by Perttu Ahola
parent 8b75736c6f
commit 0b1d09ff4f
8 changed files with 29 additions and 11 deletions

View File

@ -891,8 +891,10 @@ minetest.get_inventory(location) -> InvRef
minetest.create_detached_inventory(name, callbacks) -> InvRef
^ callbacks: See "Detached inventory callbacks"
^ Creates a detached inventory. If it already exists, it is cleared.
minetest.show_formspec(playername, formspec)
minetest.show_formspec(playername, formname, formspec)
^ playername: name of player to show formspec
^ formname: name passed to on_player_receive_fields callbacks
^ should follow "modname:<whatever>" naming convention
^ formspec: formspec to display
Item handling: