Skip to content

SettingsColorButton ​

Inherits: Control

Modern color picker component that works with any Color setting property

Variables ​

Stringproperty_name""
SettingsManagersettings_manager

Methods ​

voidinitialize( p_settings_manager: SettingsManager )

Signals ​

mouse_focus_changed( has_focus: bool, property_name: String, description: String ) ​

Emitted when the mouse enters or leaves the setting: whether it has the focus, the name of the setting and its text.

Variable descriptions ​

String property_name = "" ​

The property name in Settings (e.g. "ui_primary_color")

SettingsManager settings_manager ​

SettingsManagerRef

Method descriptions ​

void initialize( p_settings_manager: SettingsManager ) ​

Call this after instantiation to set up the control