aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2013-07-18 21:20:37 +0200
committerRealBadAngel <mk@realbadangel.pl>2013-07-24 01:02:43 +0200
commita59f85c1a037ddda775c02f42a66de1ed23d75a6 (patch)
tree04c4413465723761a5d112d6bd9882e0eafac91f /doc
parent8e2467c393e8dcb3f0d48b9e3258bf0526e6256f (diff)
downloadminetest-a59f85c1a037ddda775c02f42a66de1ed23d75a6.tar.gz
minetest-a59f85c1a037ddda775c02f42a66de1ed23d75a6.tar.bz2
minetest-a59f85c1a037ddda775c02f42a66de1ed23d75a6.zip
Add support of pressed_texture of image_button
Fix params number Add pressed texture name Fix string def Fix syntax error
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index b0281bee7..9973a790b 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -933,16 +933,24 @@ button[<X>,<Y>;<W>,<H>;<name>;<label>]
image_button[<X>,<Y>;<W>,<H>;<texture name>;<name>;<label>]
^ x, y, w, h, and name work as per button
-^ image is the filename of an image
+^ texture name is the filename of an image
^ Position and size units are inventory slots
image_button[<X>,<Y>;<W>,<H>;<texture name>;<name>;<label>;<noclip>;<drawborder>]
^ x, y, w, h, and name work as per button
-^ image is the filename of an image
+^ texture name is the filename of an image
^ Position and size units are inventory slots
^ noclip true meand imagebutton doesn't need to be within specified formsize
^ drawborder draw button bodrer or not
+image_button[<X>,<Y>;<W>,<H>;<texture name>;<name>;<label>;<noclip>;<drawborder>;<pressed texture name>]
+^ x, y, w, h, and name work as per button
+^ texture name is the filename of an image
+^ Position and size units are inventory slots
+^ noclip true meand imagebutton doesn't need to be within specified formsize
+^ drawborder draw button bodrer or not
+^ pressed texture name is the filename of an image on pressed state
+
item_image_button[<X>,<Y>;<W>,<H>;<item name>;<name>;<label>]
^ x, y, w, h, name and label work as per button
^ item name is the registered name of an item/node,