PopupMenu upgrade: Hide on item selection (#7306)
* Added the option to set hide on item selection. Usable in GDScript and from within the source code when you want to specify popup menus you don't want to close immediately when selecting an item
* Renamed getter from get_ to is_, fixed parent/child behavior, renamed bool variable to match most code and added ADD_PROPERTYNO to save some memory
(cherry picked from commit da950cd0f2)
This commit is contained in:
committed by
Rémi Verschelde
parent
2fbae72d14
commit
0701e7c2d8
@ -5893,6 +5893,7 @@ EditorNode::EditorNode() {
|
||||
debug_button->set_tooltip(TTR("Debug options"));
|
||||
|
||||
p=debug_button->get_popup();
|
||||
p->set_hide_on_item_selection(false);
|
||||
p->add_check_item(TTR("Deploy with Remote Debug"),RUN_DEPLOY_REMOTE_DEBUG);
|
||||
p->set_item_tooltip(p->get_item_count()-1,TTR("When exporting or deploying, the resulting executable will attempt to connect to the IP of this computer in order to be debugged."));
|
||||
p->add_check_item(TTR("Small Deploy with Network FS"),RUN_FILE_SERVER);
|
||||
|
||||
Reference in New Issue
Block a user