aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-07-15 22:56:53 +0200
committerPilzAdam <pilzadam@minetest.net>2013-07-22 18:09:59 +0200
commitbaf5614880edca12174fb79ac3bf172e0bf0366c (patch)
treea6436381e33a6692e25b6d010f24fb53ebaa8ac1 /doc
parent868f35e27a0553b440fe057cc13e9a4d5acc6770 (diff)
downloadminetest-baf5614880edca12174fb79ac3bf172e0bf0366c.tar.gz
minetest-baf5614880edca12174fb79ac3bf172e0bf0366c.tar.bz2
minetest-baf5614880edca12174fb79ac3bf172e0bf0366c.zip
Add port to favorites if not 30000
Major modmgr overhaul Add missing formspec checkbox doc
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 0ee3b2d91..1890682fd 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -997,6 +997,13 @@ dropdown[<X>,<Y>;<W>;<name>;<item 1>,<item 2>, ...,<item n>;<selected idx>]
^ index of currently selected dropdown item
^ color in hexadecimal format RRGGBB
+checkbox[<X>,<Y>;<name>;<label>;<selected>]
+^ show a checkbox
+^ x and y position of checkbox
+^ name fieldname data is transfered to lua
+^ label to be shown left of checkbox
+^ selected (optional) true/false
+
Note: do NOT use a element name starting with "key_" those names are reserved to
pass key press events to formspec!