summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2019-09-15 18:14:31 +0200
committerrubenwardy <rw@rubenwardy.com>2019-09-15 17:14:31 +0100
commit1db3d252cff9e8d61fecf1052d7497813851da51 (patch)
treec06529aa533410a1ba5a9971cee028eaefc4e321 /doc/lua_api.txt
parent1ea9bfc6f75316e8de852c3a529541b5c800b367 (diff)
downloadminetest-1db3d252cff9e8d61fecf1052d7497813851da51.tar.gz
minetest-1db3d252cff9e8d61fecf1052d7497813851da51.tar.bz2
minetest-1db3d252cff9e8d61fecf1052d7497813851da51.zip
Fix the bgcolor formspec element (#8716)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index b809e18c3..5a991c278 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2092,11 +2092,15 @@ Elements
* Show an inventory image of registered item/node
-### `bgcolor[<color>;<fullscreen>]`
+### `bgcolor[<color>]`
* Sets background color of formspec as `ColorString`
-* If `true`, the background color is drawn fullscreen (does not affect the size
- of the formspec).
+
+### `bgcolor[<color>;<fullscreen>]`
+
+* If `color` is a valid `ColorString`, the fullscreen background color
+ is set to `color`.
+* If `fullscreen` is a true value, the fullscreen background color is drawn.
### `background[<X>,<Y>;<W>,<H>;<texture name>]`