diff options
| author | Juan Linietsky | 2017-01-08 18:18:54 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-08 18:18:54 -0300 |
| commit | fa170cbc5862f1fbe76702d5fffa26136269cbb9 (patch) | |
| tree | 64f5a53b161ea715d4658df5455fa69d0a56f6ab /tools/editor/plugins/theme_editor_plugin.cpp | |
| parent | 1b0930c435b3aa4a3ab41b4936b9ceaa2f1da775 (diff) | |
| download | godot-fa170cbc5862f1fbe76702d5fffa26136269cbb9.tar.gz godot-fa170cbc5862f1fbe76702d5fffa26136269cbb9.tar.zst godot-fa170cbc5862f1fbe76702d5fffa26136269cbb9.zip | |
PopupMenu now emits both index_pressed and id_pressed instead of item_pressed, closes #3188
Diffstat (limited to 'tools/editor/plugins/theme_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/theme_editor_plugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/editor/plugins/theme_editor_plugin.cpp b/tools/editor/plugins/theme_editor_plugin.cpp index 2950a3485..ad0968178 100644 --- a/tools/editor/plugins/theme_editor_plugin.cpp +++ b/tools/editor/plugins/theme_editor_plugin.cpp @@ -679,7 +679,7 @@ ThemeEditor::ThemeEditor() { add_child(theme_menu); theme_menu->set_pos(Vector2(3,3)*EDSCALE); - theme_menu->get_popup()->connect("item_pressed", this,"_theme_menu_cbk"); + theme_menu->get_popup()->connect("id_pressed", this,"_theme_menu_cbk"); HBoxContainer *main_hb = memnew( HBoxContainer ); @@ -898,7 +898,7 @@ ThemeEditor::ThemeEditor() { type_menu->set_text(".."); add_del_dialog->add_child(type_menu); - type_menu->get_popup()->connect("item_pressed", this,"_type_menu_cbk"); + type_menu->get_popup()->connect("id_pressed", this,"_type_menu_cbk"); l = memnew( Label ); l->set_pos( Point2(200,5)*EDSCALE ); @@ -918,7 +918,7 @@ ThemeEditor::ThemeEditor() { add_del_dialog->add_child(name_menu); name_menu->get_popup()->connect("about_to_show", this,"_name_menu_about_to_show"); - name_menu->get_popup()->connect("item_pressed", this,"_name_menu_cbk"); + name_menu->get_popup()->connect("id_pressed", this,"_name_menu_cbk"); type_select_label= memnew( Label ); type_select_label->set_pos( Point2(400,5)*EDSCALE ); |
