mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 09:55:22 +02:00
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)
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user