ColorPickerButton
Inherits: Button < BaseButton < Control < CanvasItem < Node < Object
Category: Core
Brief Description
Button that pops out a ColorPicker.
Properties
Color | color |
bool | edit_alpha |
Methods
ColorPicker | get_picker ( ) |
PopupPanel | get_popup ( ) |
Theme Properties
Texture | bg |
StyleBox | disabled |
StyleBox | focus |
Font | font |
Color | font_color |
Color | font_color_disabled |
Color | font_color_hover |
Color | font_color_pressed |
StyleBox | hover |
int | hseparation |
StyleBox | normal |
StyleBox | pressed |
Signals
- color_changed ( Color color )
Emitted when the color changes.
- popup_closed ( )
Description
Encapsulates a ColorPicker making it accessible by pressing a button. Pressing the button will toggle the ColorPicker visibility.
Property Descriptions
- Color color
Setter | set_pick_color(value) |
Getter | get_pick_color() |
The currently selected color.
- bool edit_alpha
Setter | set_edit_alpha(value) |
Getter | is_editing_alpha() |
If true
, the alpha channel in the displayed ColorPicker will be visible. Default value: true
.
Method Descriptions
- ColorPicker get_picker ( )
Returns the ColorPicker that this node toggles.
- PopupPanel get_popup ( )
Returns the control’s PopupPanel which allows you to connect to popup signals. This allows you to handle events when the ColorPicker is shown or hidden.