summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorThomas--S <Thomas--S@users.noreply.github.com>2018-04-23 19:50:50 +0200
committerrubenwardy <rw@rubenwardy.com>2018-04-23 18:50:50 +0100
commit9577a4396aa139a748878a11eec8922ce92de575 (patch)
treeef2f879b20af3ef260397492dfa24ebdced5c3c7 /doc/lua_api.txt
parent12a8f8826d54362d70aae8524aa88118f2d84692 (diff)
downloadminetest-9577a4396aa139a748878a11eec8922ce92de575.tar.gz
minetest-9577a4396aa139a748878a11eec8922ce92de575.tar.bz2
minetest-9577a4396aa139a748878a11eec8922ce92de575.zip
Formspecs: Allow setting alpha value for the box[] element
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 70eb48c12..321c2abc6 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2283,10 +2283,11 @@ appearing when you don't expect them to. See `no_prepend[]`
* `draw_border` (optional): draw border
#### `box[<X>,<Y>;<W>,<H>;<color>]`
-* Simple colored semitransparent box
+* Simple colored box
* `x` and `y` position the box relative to the top left of the menu
* `w` and `h` are the size of box
-* `color` is color specified as a `ColorString`
+* `color` is color specified as a `ColorString`.
+ If the alpha component is left blank, the box will be semitransparent.
#### `dropdown[<X>,<Y>;<W>;<name>;<item 1>,<item 2>, ...,<item n>;<selected idx>]`
* Show a dropdown field