summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugues Ross <hugues.ross@gmail.com>2019-12-09 15:06:51 -0500
committerrubenwardy <rw@rubenwardy.com>2019-12-09 20:06:51 +0000
commit9284313d17ba906de449c6d39ef3ddacb6c73791 (patch)
treedd1ce7e801fbd5ed9e8a7446560d3343ffb2f15a /doc
parenta462181e5fe631b816cb67a4e2cb8a870ed71840 (diff)
downloadminetest-9284313d17ba906de449c6d39ef3ddacb6c73791.tar.gz
minetest-9284313d17ba906de449c6d39ef3ddacb6c73791.tar.bz2
minetest-9284313d17ba906de449c6d39ef3ddacb6c73791.zip
Refactor to centralize GUIButton styling/rendering code (#9090)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt22
1 files changed, 10 insertions, 12 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 7ba3ad77d..b23bd915c 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2541,20 +2541,20 @@ Some types may inherit styles from parent types.
* label
* vertlabel, inherits from field
* image_button
-* item_image_button, inherits from image_button
+* item_image_button
* tabheader
### Valid Properties
-* button, button_exit
+* button, button_exit, image_button, item_image_button
* alpha - boolean, whether to draw alpha in bgimg. Default true.
* bgcolor - color, sets button tint.
* bgcolor_hovered - color when hovered. Defaults to a lighter bgcolor when not provided.
* bgcolor_pressed - color when pressed. Defaults to a darker bgcolor when not provided.
- * bgimg - standard image. Defaults to none.
- * bgimg_hovered - image when hovered. Defaults to bgimg when not provided.
- * bgimg_pressed - image when pressed. Defaults to bgimg when not provided.
+ * bgimg - standard background image. Defaults to none.
+ * bgimg_hovered - background image when hovered. Defaults to bgimg when not provided.
+ * bgimg_pressed - background image when pressed. Defaults to bgimg when not provided.
* border - boolean, draw border. Set to false to hide the bevelled button pane. Default true.
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
* textcolor - color, default white.
@@ -2572,13 +2572,11 @@ Some types may inherit styles from parent types.
* textcolor - color. Default white.
* label, vertlabel
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
-* image_button
- * alpha - boolean, whether to draw alpha in bgimg. Default true.
- * border - boolean, draw border. Set to false to hide the bevelled button pane. Default false.
- * noclip - boolean, set to true to allow the element to exceed formspec bounds.
-* item_image_button
- * border - boolean, draw border. Set to false to hide the bevelled button pane. Default false.
- * noclip - boolean, set to true to allow the element to exceed formspec bounds.
+* image_button (additional properties)
+ * fgimg - standard image. Defaults to none.
+ * fgimg_hovered - image when hovered. Defaults to fgimg when not provided.
+ * fgimg_pressed - image when pressed. Defaults to fgimg when not provided.
+ * NOTE: The parameters of any given image_button will take precedence over fgimg/fgimg_pressed
* tabheader
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
* textcolor - color. Default white.