diff options
author | adelcoding1 <mustapha.tachouct@actionware.net> | 2017-03-04 10:46:55 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-04 10:46:55 +0100 |
commit | 6de83a2756316653ed67b23bbeb0fb43aa2a68c6 (patch) | |
tree | b9f8026a8cc3cc4f5446c5755c0b820d808b478f /doc | |
parent | 22df9593433ac97a60b7cbf64ba85a262f591758 (diff) | |
download | minetest-6de83a2756316653ed67b23bbeb0fb43aa2a68c6.tar.gz minetest-6de83a2756316653ed67b23bbeb0fb43aa2a68c6.tar.bz2 minetest-6de83a2756316653ed67b23bbeb0fb43aa2a68c6.zip |
FormSpec: Add position and anchor elements (#5284)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 9c96c41db..7b956dc74 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1522,6 +1522,16 @@ examples. * `fixed_size`: `true`/`false` (optional) * deprecated: `invsize[<W>,<H>;]` +#### `position[<X>,<Y>]` +* Define the position of the formspec +* A value between 0.0 and 1.0 represents a position inside the screen +* The default value is the center of the screen (0.5, 0.5) + +#### `anchor[<X>,<Y>]` +* Define the anchor of the formspec +* A value between 0.0 and 1.0 represents an anchor inside the formspec +* The default value is the center of the formspec (0.5, 0.5) + #### `container[<X>,<Y>]` * Start of a container block, moves all physical elements in the container by (X, Y) * Must have matching container_end |