summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2019-11-07 20:11:01 +0100
committerSmallJoker <SmallJoker@users.noreply.github.com>2019-11-07 20:11:01 +0100
commit5506e97ed897dde2d4820fe1b021a4622bae03b3 (patch)
tree85a029b7f9bb046bcf338abad3ea1e50362d6164 /doc
parent15a030ec9f5d9016c287cf3964894683121e59fd (diff)
downloadminetest-5506e97ed897dde2d4820fe1b021a4622bae03b3.tar.gz
minetest-5506e97ed897dde2d4820fe1b021a4622bae03b3.tar.bz2
minetest-5506e97ed897dde2d4820fe1b021a4622bae03b3.zip
Formspec: draw order and clipping for all elements (#8740)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index c0501f6bf..f7cb4ca7c 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1923,6 +1923,11 @@ When displaying text which can contain formspec code, e.g. text set by a player,
use `minetest.formspec_escape`.
For coloured text you can use `minetest.colorize`.
+Since formspec version 3, elements drawn in the order they are defined. All
+background elements are drawn before all other elements.
+`list` elements are an exception here. They are drawn last. This, however, might
+be changed at any time.
+
**WARNING**: do _not_ use a element name starting with `key_`; those names are
reserved to pass key press events to formspec!
@@ -2032,6 +2037,7 @@ Elements
be shown if the inventory list is of size 0.
* **Note**: With the new coordinate system, the spacing between inventory
slots is one-fourth the size of an inventory slot.
+* **Note**: Lists are drawn after every other element. This might change at any time.
### `list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;<starting item index>]`
@@ -2039,6 +2045,7 @@ Elements
be shown if the inventory list is of size 0.
* **Note**: With the new coordinate system, the spacing between inventory
slots is one-fourth the size of an inventory slot.
+* **Note**: Lists are drawn after every other element. This might change at any time.
### `listring[<inventory location>;<list name>]`