diff options
| author | Ignacio Etcheverry | 2015-12-29 00:36:48 +0100 |
|---|---|---|
| committer | Ignacio Etcheverry | 2016-01-02 12:58:38 +0100 |
| commit | 3ca800226ece276d1ff568650134e8857840bfbb (patch) | |
| tree | 9358010e66f63e475c59013d5ab71f2a5fbe0808 /scene/gui/control.cpp | |
| parent | 4dba503fc3bee79ceedd69738c02f2fcf5cad27f (diff) | |
| download | godot-3ca800226ece276d1ff568650134e8857840bfbb.tar.gz godot-3ca800226ece276d1ff568650134e8857840bfbb.tar.zst godot-3ca800226ece276d1ff568650134e8857840bfbb.zip | |
Diffstat (limited to 'scene/gui/control.cpp')
| -rw-r--r-- | scene/gui/control.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index ec4886a6a..e01f2f8e8 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -862,6 +862,13 @@ bool Control::window_has_modal_stack() const { return data.window->window->modal_stack.size(); } +bool Control::is_window_modal_on_top() const { + + if (window_has_modal_stack()) + return data.window->window->modal_stack.back()->get()==this; + return false; +} + void Control::_window_cancel_tooltip() { window->tooltip=NULL; |
