summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorSfan5 <sfan5@live.de>2013-07-06 10:32:58 +0200
committerSfan5 <sfan5@live.de>2013-07-06 10:32:58 +0200
commit307c57dcc494161d019d7ee394e7cdb1912ca11f (patch)
treec17ebed96fd762abff6f87657f6ebbcc81e3bd28 /doc/lua_api.txt
parent18d7bc7fa1f2621eb593969b7bcccfeb4918c05f (diff)
downloadminetest-307c57dcc494161d019d7ee394e7cdb1912ca11f.tar.gz
minetest-307c57dcc494161d019d7ee394e7cdb1912ca11f.tar.bz2
minetest-307c57dcc494161d019d7ee394e7cdb1912ca11f.zip
Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt20
1 files changed, 4 insertions, 16 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index ebba40fbf..a9f2d0d46 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -960,7 +960,7 @@ textlist[<X>,<Y>;<W>,<H>;<name>;<listelem 1>,<listelem 2>,...,<listelem n>]
^Scrollabel itemlist showing arbitrary text elements
^ x and y position the itemlist relative to the top left of the menu
^ w and h are the size of the itemlist
-^ listelements can be prepended by #colorkey (see colorkeys),
+^ listelements can be prepended by #RRGGBB in hexadecimal format
^ if you want a listelement to start with # write ##
^ name fieldname sent to server on doubleclick value is current selected element
@@ -973,24 +973,12 @@ tabheader[<X>,<Y>;<name>;<caption 1>,<caption 2>;<current_tab>;<transparent>;<dr
^ transparent (optional) show transparent
^ draw_border (optional) draw border
-box[<X>,<Y>;<W>,<H>;<colorkey>]
+box[<X>,<Y>;<W>,<H>;<color>]
^ simple colored semitransparent box
^ x and y position the box relative to the top left of the menu
^ w and h are the size of box
-^ colorkey (see colorkeys)
-
-Available colorkeys:
-- YLW yellow
-- GRN green
-- LIM lime
-- ORN orange
-- RED red
-- BLU blue
-- CYN cyan
-- BLK black
-- BRN brown
-- WHT white
-- GRY grey
+^ color in hexadecimal format RRGGBB
+
Inventory location: