From 11f012d2dbfb33fa44a819d9c7d92159ebe9dbf4 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 4 Feb 2020 15:46:01 +0800 Subject: [PATCH] Completes doc for button classes (cherry picked from commit db42d5ddffd707017097cc864b0015a11e2fc81e) --- doc/classes/ColorPickerButton.xml | 12 ++++++++++++ doc/classes/LinkButton.xml | 8 ++++++++ doc/classes/MenuButton.xml | 11 +++++++++++ doc/classes/OptionButton.xml | 13 +++++++++++++ doc/classes/ToolButton.xml | 2 +- 5 files changed, 45 insertions(+), 1 deletion(-) diff --git a/doc/classes/ColorPickerButton.xml b/doc/classes/ColorPickerButton.xml index 24a3d2b053c..7fcd47f875d 100644 --- a/doc/classes/ColorPickerButton.xml +++ b/doc/classes/ColorPickerButton.xml @@ -56,28 +56,40 @@ + The background of the color preview rect on the button. + [StyleBox] used when the [ColorPickerButton] is disabled. + [StyleBox] used when the [ColorPickerButton] is focused. It is displayed over the current [StyleBox], so using [StyleBoxEmpty] will just disable the focus visual effect. + [Font] of the [ColorPickerButton]'s text. + Default text [Color] of the [ColorPickerButton]. + Text [Color] used when the [ColorPickerButton] is disabled. + Text [Color] used when the [ColorPickerButton] is being hovered. + Text [Color] used when the [ColorPickerButton] is being pressed. + [StyleBox] used when the [ColorPickerButton] is being hovered. + The horizontal space between [ColorPickerButton]'s icon and text. + Default [StyleBox] for the [ColorPickerButton]. + [StyleBox] used when the [ColorPickerButton] is being pressed. diff --git a/doc/classes/LinkButton.xml b/doc/classes/LinkButton.xml index 243c4618b63..6ad354587f7 100644 --- a/doc/classes/LinkButton.xml +++ b/doc/classes/LinkButton.xml @@ -15,8 +15,10 @@ + The button's text that will be displayed inside the button's area. + Determines when to show the underline. See [enum UnderlineMode] for options. @@ -32,16 +34,22 @@ + [StyleBox] used when the [LinkButton] is focused. It is displayed over the current [StyleBox], so using [StyleBoxEmpty] will just disable the focus visual effect. + [Font] of the [LinkButton]'s text. + Default text [Color] of the [LinkButton]. + Text [Color] used when the [LinkButton] is being hovered. + Text [Color] used when the [LinkButton] is being pressed. + The vertical space between the baseline of text and the underline. diff --git a/doc/classes/MenuButton.xml b/doc/classes/MenuButton.xml index f3ea2862608..8395cef8147 100644 --- a/doc/classes/MenuButton.xml +++ b/doc/classes/MenuButton.xml @@ -48,26 +48,37 @@ + [StyleBox] used when the [MenuButton] is disabled. + [StyleBox] used when the [MenuButton] is focused. It is displayed over the current [StyleBox], so using [StyleBoxEmpty] will just disable the focus visual effect. + [Font] of the [MenuButton]'s text. + Default text [Color] of the [MenuButton]. + Text [Color] used when the [MenuButton] is disabled. + Text [Color] used when the [MenuButton] is being hovered. + Text [Color] used when the [MenuButton] is being pressed. + [StyleBox] used when the [MenuButton] is being hovered. + The horizontal space between [MenuButton]'s icon and text. + Default [StyleBox] for the [MenuButton]. + [StyleBox] used when the [MenuButton] is being pressed. diff --git a/doc/classes/OptionButton.xml b/doc/classes/OptionButton.xml index 54f7749ec4a..d379122b75e 100644 --- a/doc/classes/OptionButton.xml +++ b/doc/classes/OptionButton.xml @@ -232,30 +232,43 @@ + The arrow icon to be drawn on the right end of the button. + The horizontal space between the arrow icon and the right edge of the button. + [StyleBox] used when the [OptionButton] is disabled. + [StyleBox] used when the [OptionButton] is focused. It is displayed over the current [StyleBox], so using [StyleBoxEmpty] will just disable the focus visual effect. + [Font] of the [OptionButton]'s text. + Default text [Color] of the [OptionButton]. + Text [Color] used when the [OptionButton] is disabled. + Text [Color] used when the [OptionButton] is being hovered. + Text [Color] used when the [OptionButton] is being pressed. + [StyleBox] used when the [OptionButton] is being hovered. + The horizontal space between [OptionButton]'s icon and text. + Default [StyleBox] for the [OptionButton]. + [StyleBox] used when the [OptionButton] is being pressed. diff --git a/doc/classes/ToolButton.xml b/doc/classes/ToolButton.xml index 6a5ab52608b..8b2029ed2af 100644 --- a/doc/classes/ToolButton.xml +++ b/doc/classes/ToolButton.xml @@ -24,7 +24,7 @@ [StyleBox] used when the [ToolButton] is disabled. - [StyleBox] used when the [ToolButton] is focused. It is displayed over the current [StyleBox], so using [StyleboxEmpty] will just disable the focus visual effect. + [StyleBox] used when the [ToolButton] is focused. It is displayed over the current [StyleBox], so using [StyleBoxEmpty] will just disable the focus visual effect. [Font] of the [ToolButton]'s text.