Merge pull request #53041 from pycbouh/docs-color-picker-and-button-3.x

This commit is contained in:
Rémi Verschelde 2021-09-28 12:14:00 +02:00 committed by GitHub
commit 462b8dfe96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,8 @@
Color picker control. Color picker control.
</brief_description> </brief_description>
<description> <description>
[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.
</description> </description>
<tutorials> <tutorials>
<link title="Tween Demo">https://godotengine.org/asset-library/asset/146</link> <link title="Tween Demo">https://godotengine.org/asset-library/asset/146</link>

View File

@ -6,6 +6,7 @@
<description> <description>
Encapsulates a [ColorPicker] making it accessible by pressing a button. Pressing the button will toggle the [ColorPicker] visibility. 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. 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.
</description> </description>
<tutorials> <tutorials>
<link title="GUI Drag And Drop Demo">https://godotengine.org/asset-library/asset/133</link> <link title="GUI Drag And Drop Demo">https://godotengine.org/asset-library/asset/133</link>