ColorPickerButton

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

Category: Core

Brief Description

Button that pops out a ColorPicker.

Properties

Colorcolor
booledit_alpha

Methods

ColorPickerget_picker ( )
PopupPanelget_popup ( )

Theme Properties

Texturebg
StyleBoxdisabled
StyleBoxfocus
Fontfont
Colorfont_color
Colorfont_color_disabled
Colorfont_color_hover
Colorfont_color_pressed
StyleBoxhover
inthseparation
StyleBoxnormal
StyleBoxpressed

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

Setterset_pick_color(value)
Getterget_pick_color()

The currently selected color.


Setterset_edit_alpha(value)
Getteris_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.