Skip to content

Commit f7c7899

Browse files
authoredJun 23, 2020
Document deprecation of *_hovered and *_pressed styles (#10092)
1 parent d7a2113 commit f7c7899

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

Diff for: ‎doc/lua_api.txt

+6
Original file line numberDiff line numberDiff line change
@@ -2706,13 +2706,17 @@ Some types may inherit styles from parent types.
27062706
* alpha - boolean, whether to draw alpha in bgimg. Default true.
27072707
* bgcolor - color, sets button tint.
27082708
* bgcolor_hovered - color when hovered. Defaults to a lighter bgcolor when not provided.
2709+
* This is deprecated, use states instead.
27092710
* bgcolor_pressed - color when pressed. Defaults to a darker bgcolor when not provided.
2711+
* This is deprecated, use states instead.
27102712
* bgimg - standard background image. Defaults to none.
27112713
* bgimg_hovered - background image when hovered. Defaults to bgimg when not provided.
2714+
* This is deprecated, use states instead.
27122715
* bgimg_middle - Makes the bgimg textures render in 9-sliced mode and defines the middle rect.
27132716
See background9[] documentation for more details. This property also pads the
27142717
button's content when set.
27152718
* bgimg_pressed - background image when pressed. Defaults to bgimg when not provided.
2719+
* This is deprecated, use states instead.
27162720
* border - boolean, draw border. Set to false to hide the bevelled button pane. Default true.
27172721
* content_offset - 2d vector, shifts the position of the button's content without resizing it.
27182722
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
@@ -2741,7 +2745,9 @@ Some types may inherit styles from parent types.
27412745
* image_button (additional properties)
27422746
* fgimg - standard image. Defaults to none.
27432747
* fgimg_hovered - image when hovered. Defaults to fgimg when not provided.
2748+
* This is deprecated, use states instead.
27442749
* fgimg_pressed - image when pressed. Defaults to fgimg when not provided.
2750+
* This is deprecated, use states instead.
27452751
* NOTE: The parameters of any given image_button will take precedence over fgimg/fgimg_pressed
27462752
* tabheader
27472753
* noclip - boolean, set to true to allow the element to exceed formspec bounds.

0 commit comments

Comments
 (0)
Please sign in to comment.