1
0
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:
A Thousand Ships
2024-05-14 14:13:31 +02:00
parent 505da68b26
commit 755a0efbb6
72 changed files with 163 additions and 161 deletions

View File

@@ -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);