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
|
|
@ -1351,7 +1351,7 @@ ProjectSettings::ProjectSettings(EditorData *p_data) {
|
|||
|
||||
}
|
||||
|
||||
popup_platform->get_popup()->connect("item_pressed",this,"_copy_to_platform");
|
||||
popup_platform->get_popup()->connect("id_pressed",this,"_copy_to_platform");
|
||||
get_ok()->set_text(TTR("Close"));
|
||||
set_hide_on_ok(true);
|
||||
|
||||
|
|
@ -1399,7 +1399,7 @@ ProjectSettings::ProjectSettings(EditorData *p_data) {
|
|||
input_editor->connect("button_pressed",this,"_action_button_pressed");
|
||||
popup_add = memnew( PopupMenu );
|
||||
add_child(popup_add);
|
||||
popup_add->connect("item_pressed",this,"_add_item");
|
||||
popup_add->connect("id_pressed",this,"_add_item");
|
||||
|
||||
press_a_key = memnew( ConfirmationDialog );
|
||||
press_a_key->set_focus_mode(FOCUS_ALL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue