From dd2a01cbbe25cf18a5f173d28c22a328677cccd0 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Sat, 25 Sep 2021 02:21:39 +0300 Subject: [PATCH] Add usability notes to ColorPicker and ColorPickerButton descriptions Co-authored-by: follower --- doc/classes/ColorPicker.xml | 3 ++- doc/classes/ColorPickerButton.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/classes/ColorPicker.xml b/doc/classes/ColorPicker.xml index 178e19c2fe4..cbda49a9417 100644 --- a/doc/classes/ColorPicker.xml +++ b/doc/classes/ColorPicker.xml @@ -4,7 +4,8 @@ Color picker control. - [Control] node displaying a color picker widget. It's useful for selecting a color from an RGB/RGBA colorspace. + Displays a color picker widget. Useful for selecting a color from an RGB/RGBA colorspace. + [b]Note:[/b] This control is the color picker widget itself. You can use a [ColorPickerButton] instead if you need a button that brings up a [ColorPicker] in a pop-up. https://godotengine.org/asset-library/asset/146 diff --git a/doc/classes/ColorPickerButton.xml b/doc/classes/ColorPickerButton.xml index 3723576b264..8d06f854150 100644 --- a/doc/classes/ColorPickerButton.xml +++ b/doc/classes/ColorPickerButton.xml @@ -6,6 +6,7 @@ Encapsulates a [ColorPicker] making it accessible by pressing a button. Pressing the button will toggle the [ColorPicker] visibility. See also [BaseButton] which contains common properties and methods associated with this node. + [b]Note:[/b] By default, the button may not be wide enough for the color preview swatch to be visible. Make sure to set [member Control.rect_min_size] to a big enough value to give the button enough space. https://godotengine.org/asset-library/asset/133