summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2016-07-07 21:10:15 +0100
committerparamat <mat.gregory@virginmedia.com>2016-10-03 01:53:13 +0100
commit077b6cfa21fe323434e704bb7a81870ff689c433 (patch)
treecd00e663e21ada4e4264a305c76cca5c7a5b625a /doc/lua_api.txt
parenteb0e9d5661e28cdd4f59b96f7ab269fbf67bdc34 (diff)
downloadminetest-077b6cfa21fe323434e704bb7a81870ff689c433.tar.gz
minetest-077b6cfa21fe323434e704bb7a81870ff689c433.tar.bz2
minetest-077b6cfa21fe323434e704bb7a81870ff689c433.zip
Formspec: Add container[] and container_end[] elements
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 6f69360c8..e0e984c0f 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1469,6 +1469,15 @@ examples.
* `fixed_size`: `true`/`false` (optional)
* deprecated: `invsize[<W>,<H>;]`
+#### `container[<X>,<Y>]`
+* Start of a container block, moves all physical elements in the container by (X, Y)
+* Must have matching container_end
+* Containers can be nested, in which case the offsets are added
+ (child containers are relative to parent containers)
+
+#### `container_end[]`
+* End of a container, following elements are no longer relative to this container
+
#### `list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;]`
* Show an inventory list