mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue