diff options
author | Ivan P. Skodje <Tybobobo@users.noreply.github.com> | 2016-12-23 15:43:45 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-12-23 15:43:45 +0100 |
commit | da950cd0f27a4f1f2a2d596efae846d1c22442a2 (patch) | |
tree | 74595ac5affca7325782cf7c2244d29fe79de723 /tools | |
parent | 2c8a1729152f5bcb1cb81d24b1e642634bff7174 (diff) |
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
Diffstat (limited to 'tools')
-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 5a3deb7b9d..5b4b381e96 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -5957,6 +5957,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); |