diff options
author | sapier <Sapier at GMX dot net> | 2013-01-03 17:59:28 +0000 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-01-07 19:00:33 +0200 |
commit | 0b1d09ff4f4e92986f6abdbc57db97c18707196a (patch) | |
tree | 1ae8016123a1c031406653c924c6f32e1e24db43 /doc | |
parent | 8b75736c6f747ec4d01419ee6475e03feab398b9 (diff) | |
download | minetest-0b1d09ff4f4e92986f6abdbc57db97c18707196a.tar.gz minetest-0b1d09ff4f4e92986f6abdbc57db97c18707196a.tar.bz2 minetest-0b1d09ff4f4e92986f6abdbc57db97c18707196a.zip |
Fix buttons not working for Lua-triggered formspecs
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b0c1b41a3..94fc78b2e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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: |