ColorPickerButton

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

Button that pops out a ColorPicker.

Description

Encapsulates a ColorPicker making it accessible by pressing a button. Pressing the button will toggle the ColorPicker visibility.

Properties

ColorColorColor( 0, 0, 0, 1 )
booledit_alphatrue
booltoggle_modeO: true

Theme Properties

Texturebg 
StyleBoxdisabled 
StyleBoxfocus 
Fontfont 
Colorfont_colorColor( 1, 1, 1, 1 )
Colorfont_color_disabledColor( 0.9, 0.9, 0.9, 0.3 )
Colorfont_color_hoverColor( 1, 1, 1, 1 )
Colorfont_color_pressedColor( 0.8, 0.8, 0.8, 1 )
StyleBoxhover 
inthseparation2
StyleBoxnormal 
StyleBoxpressed 

Signals

  • color_changed ( Color color )

Emitted when the color changes.


  • picker_created ( )

Emitted when the ColorPicker is created (the button is pressed for the first time).


  • popup_closed ( )

Emitted when the ColorPicker is closed.

Property Descriptions

DefaultColor( 0, 0, 0, 1 )
Setterset_pick_color(value)
Getterget_pick_color()

The currently selected color.


Defaulttrue
Setterset_edit_alpha(value)
Getteris_editing_alpha()

If true, the alpha channel in the displayed ColorPicker will be visible.

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.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.