diff options
| author | Bernhard Liebl | 2017-11-22 09:43:40 +0100 |
|---|---|---|
| committer | Bernhard Liebl | 2017-12-10 10:55:48 +0100 |
| commit | efc3ffb816796fbab64d389508d837560b4f220c (patch) | |
| tree | 77e171cd720c8fd77a9883fad0dfe7eedc9257a3 /scene/gui/control.cpp | |
| parent | d055031c73ebce375f3b0087baf9ba617fc996aa (diff) | |
| download | godot-efc3ffb816796fbab64d389508d837560b4f220c.tar.gz godot-efc3ffb816796fbab64d389508d837560b4f220c.tar.zst godot-efc3ffb816796fbab64d389508d837560b4f220c.zip | |
Diffstat (limited to 'scene/gui/control.cpp')
| -rw-r--r-- | scene/gui/control.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index adca78d1d..81d2b6731 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2470,6 +2470,16 @@ Control::MouseFilter Control::get_mouse_filter() const { return data.mouse_filter; } +void Control::set_pass_on_modal_close_click(bool p_pass_on) { + + data.pass_on_modal_close_click = p_pass_on; +} + +bool Control::pass_on_modal_close_click() const { + + return data.pass_on_modal_close_click; +} + Control *Control::get_focus_owner() const { ERR_FAIL_COND_V(!is_inside_tree(), NULL); @@ -2934,6 +2944,7 @@ Control::Control() { data.parent = NULL; data.mouse_filter = MOUSE_FILTER_STOP; + data.pass_on_modal_close_click = true; data.SI = NULL; data.MI = NULL; |
