diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-03 12:36:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 12:36:04 +0200 |
commit | dd7c4c62ab35b75ef7f873b27d6ba93cb8ebefab (patch) | |
tree | 8bbbfcff7c72e1e3e6047e46298c5f486100efae /scene/gui | |
parent | 2ee0ca3d43b93a102aaf037c0d947c70359c20fb (diff) | |
parent | 1de3ec911fb365979595942e1c4b88ac19192188 (diff) |
Merge pull request #31782 from aole/persist-ColorPicker-color-mode
Persist ColorPicker color mode
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/color_picker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 1d529f4e72..6dd9e401f6 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -964,6 +964,7 @@ void ColorPickerButton::_update_picker() { popup->connect("popup_hide", this, "set_pressed", varray(false)); picker->set_pick_color(color); picker->set_edit_alpha(edit_alpha); + emit_signal("picker_created"); } } @@ -980,6 +981,7 @@ void ColorPickerButton::_bind_methods() { ADD_SIGNAL(MethodInfo("color_changed", PropertyInfo(Variant::COLOR, "color"))); ADD_SIGNAL(MethodInfo("popup_closed")); + ADD_SIGNAL(MethodInfo("picker_created")); ADD_PROPERTY(PropertyInfo(Variant::COLOR, "color"), "set_pick_color", "get_pick_color"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "edit_alpha"), "set_edit_alpha", "is_editing_alpha"); } |