diff options
author | sapier <Sapier at GMX dot net> | 2014-03-04 19:57:39 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-03-05 18:44:14 +0100 |
commit | a4e2198e4102f1dabc8f8720c2ace9c2fca8d999 (patch) | |
tree | b0287c27c99763e6cbda7f1990a5ce93397d7182 /doc | |
parent | 062de11b4cff30861dd4e9eb56f131d821f34b51 (diff) | |
download | minetest-a4e2198e4102f1dabc8f8720c2ace9c2fca8d999.tar.gz minetest-a4e2198e4102f1dabc8f8720c2ace9c2fca8d999.tar.bz2 minetest-a4e2198e4102f1dabc8f8720c2ace9c2fca8d999.zip |
Replace pause and message menu by formspec ones
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index f54684940..713800752 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -849,7 +849,7 @@ Example stuff: local meta = minetest.get_meta(pos) meta:set_string("formspec", - "invsize[8,9;]".. + "size[8,9]".. "list[context;main;0,0;8,4;]".. "list[current_player;main;0,5;8,4;]") meta:set_string("infotext", "Chest"); @@ -861,7 +861,7 @@ meta:from_table({ main = {[1] = "default:dirt", [2] = "", [3] = "", [4] = "", [5] = "", [6] = "", [7] = "", [8] = "", [9] = "", [10] = "", [11] = "", [12] = "", [13] = "", [14] = "default:cobble", [15] = "", [16] = "", [17] = "", [18] = "", [19] = "", [20] = "default:cobble", [21] = "", [22] = "", [23] = "", [24] = "", [25] = "", [26] = "", [27] = "", [28] = "", [29] = "", [30] = "", [31] = "", [32] = ""} }, fields = { - formspec = "invsize[8,9;]list[context;main;0,0;8,4;]list[current_player;main;0,5;8,4;]", + formspec = "size[8,9]list[context;main;0,0;8,4;]list[current_player;main;0,5;8,4;]", infotext = "Chest" } }) @@ -876,17 +876,17 @@ examples. Examples: - Chest: - invsize[8,9;] + size[8,9] list[context;main;0,0;8,4;] list[current_player;main;0,5;8,4;] - Furnace: - invsize[8,9;] + size[8,9] list[context;fuel;2,3;1,1;] list[context;src;2,1;1,1;] list[context;dst;5,1;2,2;] list[current_player;main;0,5;8,4;] - Minecraft-like player inventory - invsize[8,7.5;] + size[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;] @@ -894,8 +894,9 @@ Examples: Elements: -size[<W>,<H>] +size[<W>,<H>,<fixed_size>] ^ Define the size of the menu in inventory slots +^ fixed_size true/false (optional) ^ deprecated: invsize[<W>,<H>;] list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;] |