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
|
|
@ -54,7 +54,7 @@ void EditorRunNative::_notification(int p_what) {
|
|||
Ref<ImageTexture> small_icon = memnew( ImageTexture);
|
||||
small_icon->create_from_image(im);
|
||||
MenuButton *mb = memnew( MenuButton );
|
||||
mb->get_popup()->connect("item_pressed",this,"_run_native",varray(E->get()));
|
||||
mb->get_popup()->connect("id_pressed",this,"_run_native",varray(E->get()));
|
||||
mb->connect("pressed",this,"_run_native",varray(-1, E->get()));
|
||||
mb->set_icon(small_icon);
|
||||
add_child(mb);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue