diff options
author | jitspoe <jitspoe@yahoo.com> | 2019-10-24 23:29:10 -0400 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2021-06-29 12:31:40 +0200 |
commit | e192eb05db1e57ba2bcdd052bf3218655f5b2bc0 (patch) | |
tree | 66c7e137136cb5054e690f78e98a1efae665bf11 /doc | |
parent | 8fb7a9f0233f61d7a18359523002ab38797f6853 (diff) |
Add alignment options to icons on buttons.
They can now be centered and right-aligned.
Fixes #11380.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Button.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/Button.xml b/doc/classes/Button.xml index c9078a4de5..239e0bb2d9 100644 --- a/doc/classes/Button.xml +++ b/doc/classes/Button.xml @@ -85,6 +85,9 @@ <member name="icon" type="Texture2D" setter="set_button_icon" getter="get_button_icon"> Button's icon, if text is present the icon will be placed before the text. </member> + <member name="icon_align" type="int" setter="set_icon_align" getter="get_icon_align" enum="Button.TextAlign" default="0"> + Specifies if the icon should be aligned to the left, right, or center of a button. Uses the same [enum TextAlign] constants as the text alignment. If centered, text will draw on top of the icon. + </member> <member name="language" type="String" setter="set_language" getter="get_language" default=""""> Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead. </member> |