diff options
author | xyzz <zhuravlevilya@ya.ru> | 2012-11-12 11:50:58 -0800 |
---|---|---|
committer | xyzz <zhuravlevilya@ya.ru> | 2012-11-12 11:50:58 -0800 |
commit | 5292476841430c55d889b1707cf890638a3dd2a2 (patch) | |
tree | 91a992eabb8b01e7db2fa03f6791ee1245329821 /doc | |
parent | 1db033478797f0c98afa53896fd7767d7566d69e (diff) | |
parent | 8e5167d72622dec428477a7fff529b7dbc974106 (diff) | |
download | minetest-5292476841430c55d889b1707cf890638a3dd2a2.tar.gz minetest-5292476841430c55d889b1707cf890638a3dd2a2.tar.bz2 minetest-5292476841430c55d889b1707cf890638a3dd2a2.zip |
Merge pull request #284 from RealBadAngel/master
Adding backgrounds to formspec
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 5 |
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 |