diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-07-29 12:31:20 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-29 12:31:20 -0300 |
commit | 0fcc28b6f370c478d1990af51070f9fbee531c20 (patch) | |
tree | d00c731ee1e6c762c53a04c6833b7c7f59cc8c58 /scene/gui/popup_menu.h | |
parent | d2aaf460fbb5d743adae1ea079a24cdd834d659f (diff) | |
parent | 1bb13e95a89c57996d6d6d937e49a6329c03d940 (diff) | |
download | redot-engine-0fcc28b6f370c478d1990af51070f9fbee531c20.tar.gz |
Merge pull request #15269 from ianb96/context_menu_improvements
Context Menu Improvements
Diffstat (limited to 'scene/gui/popup_menu.h')
-rw-r--r-- | scene/gui/popup_menu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/popup_menu.h b/scene/gui/popup_menu.h index 8ec51c7d3a..a06a17c9fe 100644 --- a/scene/gui/popup_menu.h +++ b/scene/gui/popup_menu.h @@ -101,6 +101,7 @@ class PopupMenu : public Popup { bool hide_on_item_selection; bool hide_on_checkable_item_selection; bool hide_on_multistate_item_selection; + bool hide_on_window_lose_focus; Vector2 moved; Array _get_items() const; @@ -207,6 +208,9 @@ public: virtual void popup(const Rect2 &p_bounds = Rect2()); + void set_hide_on_window_lose_focus(bool p_enabled); + bool is_hide_on_window_lose_focus() const; + PopupMenu(); ~PopupMenu(); }; |