You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
[Scene] Add SceneStringNames::id_pressed
This commit is contained in:
@@ -1863,7 +1863,7 @@ ColorPicker::ColorPicker() {
|
||||
shape_popup->add_radio_check_item("VHS Circle", SHAPE_VHS_CIRCLE);
|
||||
shape_popup->add_radio_check_item("OKHSL Circle", SHAPE_OKHSL_CIRCLE);
|
||||
shape_popup->set_item_checked(current_shape, true);
|
||||
shape_popup->connect("id_pressed", callable_mp(this, &ColorPicker::set_picker_shape));
|
||||
shape_popup->connect(SceneStringName(id_pressed), callable_mp(this, &ColorPicker::set_picker_shape));
|
||||
|
||||
add_mode(new ColorModeRGB(this));
|
||||
add_mode(new ColorModeHSV(this));
|
||||
@@ -1904,7 +1904,7 @@ ColorPicker::ColorPicker() {
|
||||
mode_popup->add_check_item("Colorized Sliders", MODE_MAX);
|
||||
mode_popup->set_item_checked(current_mode, true);
|
||||
mode_popup->set_item_checked(MODE_MAX + 1, true);
|
||||
mode_popup->connect("id_pressed", callable_mp(this, &ColorPicker::_set_mode_popup_value));
|
||||
mode_popup->connect(SceneStringName(id_pressed), callable_mp(this, &ColorPicker::_set_mode_popup_value));
|
||||
VBoxContainer *vbl = memnew(VBoxContainer);
|
||||
real_vbox->add_child(vbl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user