diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-06-19 00:22:03 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-06-19 00:22:03 +0200 |
commit | 04fbf47744a71d885aaeaf356f2529628d74555b (patch) | |
tree | e1c40955964b481873c8950b806ef680ad95fe3d /doc | |
parent | 65a4630f3176feb0f4dd4db6ce12cd6d32e2b369 (diff) | |
download | minetest-04fbf47744a71d885aaeaf356f2529628d74555b.tar.gz minetest-04fbf47744a71d885aaeaf356f2529628d74555b.tar.bz2 minetest-04fbf47744a71d885aaeaf356f2529628d74555b.zip |
Add tooltips for button, imagebutton and checkbox.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index f4e1fd230..6ed560869 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -986,32 +986,28 @@ vertlabel[<X>,<Y>;<label>] ^ label is the text on the label ^ Position and size units are inventory slots -button[<X>,<Y>;<W>,<H>;<name>;<label>] +button[<X>,<Y>;<W>,<H>;<name>;<label>;<tooltip>] ^ Clickable button. When clicked, fields will be sent. ^ x, y and name work as per field ^ w and h are the size of the button ^ label is the text on the button ^ Position and size units are inventory slots +^ tooltip is optional image_button[<X>,<Y>;<W>,<H>;<texture name>;<name>;<label>] ^ x, y, w, h, and name work as per button ^ texture name is the filename of an image ^ Position and size units are inventory slots -image_button[<X>,<Y>;<W>,<H>;<texture name>;<name>;<label>;<noclip>;<drawborder>] -^ x, y, w, h, and name work as per button -^ texture name is the filename of an image -^ Position and size units are inventory slots -^ noclip true meand imagebutton doesn't need to be within specified formsize -^ drawborder draw button bodrer or not - image_button[<X>,<Y>;<W>,<H>;<texture name>;<name>;<label>;<noclip>;<drawborder>;<pressed texture name>] +image_button[<X>,<Y>;<W>,<H>;<texture name>;<name>;<label>;<noclip>;<drawborder>;<pressed texture name>;<tooltip>] ^ x, y, w, h, and name work as per button ^ texture name is the filename of an image ^ Position and size units are inventory slots ^ noclip true meand imagebutton doesn't need to be within specified formsize ^ drawborder draw button bodrer or not ^ pressed texture name is the filename of an image on pressed state +^ tooltip is optional item_image_button[<X>,<Y>;<W>,<H>;<item name>;<name>;<label>] ^ x, y, w, h, name and label work as per button @@ -1068,12 +1064,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 (only) -checkbox[<X>,<Y>;<name>;<label>;<selected>] +checkbox[<X>,<Y>;<name>;<label>;<selected>;<tooltip>] ^ 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 +^ tooltip (optional) table[<X>,<Y>;<W>,<H>;<name>;<cell 1>,<cell 2>,...,<cell n>;<selected idx>] ^ show scrollable table using options defined by the previous tableoptions[] |