github_url: | hide |
---|
Inherits: :ref:`Button<class_Button>` < :ref:`BaseButton<class_BaseButton>` < :ref:`Control<class_Control>` < :ref:`CanvasItem<class_CanvasItem>` < :ref:`Node<class_Node>` < :ref:`Object<class_Object>`
Button that pops out a :ref:`ColorPicker<class_ColorPicker>`.
Encapsulates a :ref:`ColorPicker<class_ColorPicker>` making it accessible by pressing a button. Pressing the button will toggle the :ref:`ColorPicker<class_ColorPicker>` visibility.
:ref:`Color<class_Color>` | :ref:`color<class_ColorPickerButton_property_color>` | Color( 0, 0, 0, 1 ) |
:ref:`bool<class_bool>` | :ref:`edit_alpha<class_ColorPickerButton_property_edit_alpha>` | true |
:ref:`bool<class_bool>` | toggle_mode |
O: true
|
:ref:`Texture2D<class_Texture2D>` | bg | |
:ref:`StyleBox<class_StyleBox>` | disabled | |
:ref:`StyleBox<class_StyleBox>` | focus | |
:ref:`Font<class_Font>` | font | |
:ref:`Color<class_Color>` | font_color | Color( 1, 1, 1, 1 ) |
:ref:`Color<class_Color>` | font_color_disabled | Color( 0.9, 0.9, 0.9, 0.3 ) |
:ref:`Color<class_Color>` | font_color_hover | Color( 1, 1, 1, 1 ) |
:ref:`Color<class_Color>` | font_color_pressed | Color( 0.8, 0.8, 0.8, 1 ) |
:ref:`StyleBox<class_StyleBox>` | hover | |
:ref:`int<class_int>` | hseparation | 2 |
:ref:`StyleBox<class_StyleBox>` | normal | |
:ref:`StyleBox<class_StyleBox>` | pressed |
Emitted when the color changes.
Emitted when the :ref:`ColorPicker<class_ColorPicker>` is created (the button is pressed for the first time).
Emitted when the :ref:`ColorPicker<class_ColorPicker>` is closed.
Default | Color( 0, 0, 0, 1 ) |
Setter | set_pick_color(value) |
Getter | get_pick_color() |
The currently selected color.
Default | true |
Setter | set_edit_alpha(value) |
Getter | is_editing_alpha() |
If true
, the alpha channel in the displayed :ref:`ColorPicker<class_ColorPicker>` will be visible.
Returns the :ref:`ColorPicker<class_ColorPicker>` that this node toggles.
Returns the control's :ref:`PopupPanel<class_PopupPanel>` which allows you to connect to popup signals. This allows you to handle events when the ColorPicker is shown or hidden.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。