ColorPickerButton

Inherits: Button < BaseButton < Control < CanvasItem < Node < Object

Category: Core

Brief Description

Button that pops out a ColorPicker.

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

Setter set_pick_color(value)
Getter get_pick_color()

The currently selected color.

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

Returns the ColorPicker that this node toggles.

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.