From 077b6cfa21fe323434e704bb7a81870ff689c433 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 7 Jul 2016 21:10:15 +0100 Subject: Formspec: Add container[] and container_end[] elements --- doc/lua_api.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') 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[,;]` +#### `container[,]` +* 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[;;,;,;]` * Show an inventory list -- cgit v1.2.3