summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2012-12-01 18:36:42 +0100
committerPerttu Ahola <celeron55@gmail.com>2012-12-01 20:39:41 +0200
commitf4b7e1a5707850aad9f6c122c05de4d2f9ede074 (patch)
treee7d7869fe3b10ef7b4cf8e2871309ecacab98e4a /doc/lua_api.txt
parentfa50341a71bbda80240d9a7e326dfe3bcd5b63e5 (diff)
downloadminetest-f4b7e1a5707850aad9f6c122c05de4d2f9ede074.tar.gz
minetest-f4b7e1a5707850aad9f6c122c05de4d2f9ede074.tar.bz2
minetest-f4b7e1a5707850aad9f6c122c05de4d2f9ede074.zip
New elements in formspec, item_image and item_image_button.
Fixed also game bug drawing dragged item behind fields, buttons etc.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 08619b72a..60d1b2cb9 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -697,6 +697,10 @@ image[<X>,<Y>;<W>,<H>;<texture name>]
^ Show an image
^ Position and size units are inventory slots
+item_image[<X>,<Y>;<W>,<H>;<item name>]
+^ Show an inventory image of registered item/node
+^ Position and size units are inventory slots
+
background[<X>,<Y>;<W>,<H>;<texture name>]
^ Use a background. Inventory rectangles are not drawn then.
^ Position and size units are inventory slots
@@ -738,6 +742,12 @@ image_button[<X>,<Y>;<W>,<H>;<texture name>;<name>;<label>]
^ image is the filename of an image
^ Position and size units are inventory slots
+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,
+ tooltip will be made out of its descritption
+^ Position and size units are inventory slots
+
button_exit[<X>,<Y>;<W>,<H>;<name>;<label>]
^ When clicked, fields will be sent and the form will quit.