aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2012-11-08 19:22:37 +0100
committerRealBadAngel <mk@realbadangel.pl>2012-11-08 19:22:37 +0100
commit8e5167d72622dec428477a7fff529b7dbc974106 (patch)
tree6568a01790c0ecb5c7e4e93c182245e14b293e75 /doc
parent8c3ffa3907dae0c16bfe63965ed6380c7e89df84 (diff)
downloadminetest-8e5167d72622dec428477a7fff529b7dbc974106.tar.gz
minetest-8e5167d72622dec428477a7fff529b7dbc974106.tar.bz2
minetest-8e5167d72622dec428477a7fff529b7dbc974106.zip
Adding background to Formspec
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 301832618..500b514d9 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -694,6 +694,11 @@ image[<X>,<Y>;<W>,<H>;<texture name>]
^ Show an image
^ 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
+^ Example for formspec 8x4 in 16x resolution: image shall be sized 8*16px x 4*16px
+
field[<X>,<Y>;<W>,<H>;<name>;<label>;<default>]
^ Textual field; will be sent to server when a button is clicked
^ x and y position the field relative to the top left of the menu