diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-06-03 17:18:08 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-03 22:31:02 +0300 |
commit | 1709fd854a2d943de8cc48ee1e092dcb4315f9a6 (patch) | |
tree | f0dddbb5ecfffa0f4e2f82de020ae95edb8769f7 /doc | |
parent | 7bf446f671541f38d6dc89d207ee6effd3564483 (diff) | |
download | minetest-1709fd854a2d943de8cc48ee1e092dcb4315f9a6.tar.gz minetest-1709fd854a2d943de8cc48ee1e092dcb4315f9a6.tar.bz2 minetest-1709fd854a2d943de8cc48ee1e092dcb4315f9a6.zip |
Implement image[<X>,<Y>;<W>,<H>;<texture name>] and allow floating-point values in formspec
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index d994fab7c..4321bf76e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -604,6 +604,12 @@ Examples: list[current_name;src;2,1;1,1;] list[current_name;dst;5,1;2,2;] list[current_player;main;0,5;8,4;] +- Minecraft-like player inventory + invsize[8,7.5;] + image[1,0.6;1,2;player.png] + list[current_player;main;0,3.5;8,4;] + list[current_player;craft;3,0;3,3;] + list[current_player;craftpreview;7,1;1,1;] Elements: @@ -616,7 +622,6 @@ list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;] image[<X>,<Y>;<W>,<H>;<texture name>] ^ Show an image ^ Position and size units are inventory slots -^ Not implemented field[<X>,<Y>;<W>,<H>;<name>;<label>;<default>] ^ Textual field; will be sent to server when a button is clicked |