PopupMenu now emits both index_pressed and id_pressed instead of item_pressed, closes #3188
This commit is contained in:
parent
1b0930c435
commit
fa170cbc58
43 changed files with 89 additions and 87 deletions
|
|
@ -356,7 +356,7 @@ ParticlesEditor::ParticlesEditor() {
|
|||
options->get_popup()->add_item(TTR("Create Emitter From Node"),MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE);
|
||||
options->get_popup()->add_item(TTR("Clear Emitter"),MENU_OPTION_CLEAR_EMISSION_VOLUME);
|
||||
|
||||
options->get_popup()->connect("item_pressed", this,"_menu_option");
|
||||
options->get_popup()->connect("id_pressed", this,"_menu_option");
|
||||
|
||||
emission_dialog = memnew( ConfirmationDialog );
|
||||
emission_dialog->set_title(TTR("Create Emitter"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue