1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

PopupMenu now emits both index_pressed and id_pressed instead of item_pressed, closes #3188

This commit is contained in:
Juan Linietsky
2017-01-08 18:18:54 -03:00
parent 1b0930c435
commit fa170cbc58
43 changed files with 89 additions and 87 deletions

View File

@@ -1371,7 +1371,7 @@ AnimationTreeEditor::AnimationTreeEditor() {
p->add_separator();
p->add_item(TTR("Clear"),MENU_GRAPH_CLEAR);
p->connect("item_pressed", this,"_add_menu_item");
p->connect("id_pressed", this,"_add_menu_item");
play_button = memnew(Button);
play_button->set_pos(Point2(25,0));
@@ -1407,10 +1407,10 @@ AnimationTreeEditor::AnimationTreeEditor() {
master_anim_popup = memnew( PopupMenu );
add_child(master_anim_popup);
master_anim_popup->connect("item_pressed",this,"_master_anim_menu_item");
master_anim_popup->connect("id_pressed",this,"_master_anim_menu_item");
node_popup->connect("item_pressed", this,"_node_menu_item");
node_popup->connect("id_pressed", this,"_node_menu_item");
updating_edit=false;