diff options
| author | Ivan P. Skodje | 2016-12-23 15:43:45 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-01-12 19:15:28 +0100 |
| commit | 0701e7c2d822691f2b716ecda5b009c4f5cf271f (patch) | |
| tree | cfc28a17645ef7099a569880a6c1111cf763d46e /tools/editor/editor_node.cpp | |
| parent | 2fbae72d14a4849d7aa9c066a9101aa063399328 (diff) | |
| download | godot-0701e7c2d822691f2b716ecda5b009c4f5cf271f.tar.gz godot-0701e7c2d822691f2b716ecda5b009c4f5cf271f.tar.zst godot-0701e7c2d822691f2b716ecda5b009c4f5cf271f.zip | |
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 da950cd0f27a4f1f2a2d596efae846d1c22442a2)
Diffstat (limited to '')
| -rw-r--r-- | tools/editor/editor_node.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 5a11cd5c6..03b20dc8f 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -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); |
