summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorHugues Ross <hugues.ross@gmail.com>2019-10-12 12:44:23 -0400
committerSmallJoker <SmallJoker@users.noreply.github.com>2019-10-12 18:44:23 +0200
commit69a2099c04527404f2d0942f2088b3d22dd75b5a (patch)
tree8d6fcc7dd688ace290b50f171dc319ccb68e5a5e /doc/lua_api.txt
parent894008ce6fa02aed05f1ac12e0d7bc62e2476359 (diff)
downloadminetest-69a2099c04527404f2d0942f2088b3d22dd75b5a.tar.gz
minetest-69a2099c04527404f2d0942f2088b3d22dd75b5a.tar.bz2
minetest-69a2099c04527404f2d0942f2088b3d22dd75b5a.zip
Add more visual feedback for button states (#8916)
- Add style properties for overriding the the hovered/pressed state - By default, hovered buttons are a lighter version of the base color - By default, pressed buttons are a darker version of the base color - Add hovered bg image support for image buttons (style property)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 907f47e73..5640be73c 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2501,7 +2501,10 @@ Some types may inherit styles from parent types.
* button, button_exit
* 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.
* 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.