From 31b7f02a29cdf4f1c30cfc37962f43f67380b9ad Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 19 Jun 2020 20:49:04 +0200 Subject: Remove ToolButton in favor of Button ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081. --- doc/classes/EditorPlugin.xml | 2 +- doc/classes/ToolButton.xml | 57 -------------------------------------------- 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 doc/classes/ToolButton.xml (limited to 'doc/classes') diff --git a/doc/classes/EditorPlugin.xml b/doc/classes/EditorPlugin.xml index 19583fca28..2fa791a9df 100644 --- a/doc/classes/EditorPlugin.xml +++ b/doc/classes/EditorPlugin.xml @@ -22,7 +22,7 @@ - + diff --git a/doc/classes/ToolButton.xml b/doc/classes/ToolButton.xml deleted file mode 100644 index f78627b163..0000000000 --- a/doc/classes/ToolButton.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - Flat button helper class. - - - This is a helper class to generate a flat [Button] (see [member Button.flat]), creating a [ToolButton] is equivalent to: - [codeblock] - var btn = Button.new() - btn.flat = true - [/codeblock] - - - - - - - - - - - - - [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. - - - [Font] of the [ToolButton]'s text. - - - Default text [Color] of the [ToolButton]. - - - Text [Color] used when the [ToolButton] is disabled. - - - Text [Color] used when the [ToolButton] is being hovered. - - - Text [Color] used when the [ToolButton] is being pressed. - - - [StyleBox] used when the [ToolButton] is being hovered. - - - The horizontal space between [ToolButton]'s icon and text. - - - Default [StyleBox] for the [ToolButton]. - - - [StyleBox] used when the [ToolButton] is being pressed. - - - -- cgit v1.2.3