diff options
| author | Ignacio Etcheverry | 2016-01-24 16:26:03 +0100 |
|---|---|---|
| committer | Ignacio Etcheverry | 2016-01-24 16:26:03 +0100 |
| commit | a3e491435593f75e394b8ec72c192d3119bf72d0 (patch) | |
| tree | 16761fd1e9bf0af74355f1696e66e1f55ed76c1c /tools/editor/editor_node.cpp | |
| parent | dfbc2dce177462506d9c41dfaa867dd76bd136a7 (diff) | |
| download | godot-a3e491435593f75e394b8ec72c192d3119bf72d0.tar.gz godot-a3e491435593f75e394b8ec72c192d3119bf72d0.tar.zst godot-a3e491435593f75e394b8ec72c192d3119bf72d0.zip | |
Fix Output panel annoying focus steal
Diffstat (limited to 'tools/editor/editor_node.cpp')
| -rw-r--r-- | tools/editor/editor_node.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index eae2d69dd..8d3613460 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -4579,6 +4579,16 @@ ToolButton *EditorNode::add_bottom_panel_item(String p_text,Control *p_item) { } +bool EditorNode::are_bottom_panels_hidden() const { + + for(int i=0;i<bottom_panel_items.size();i++) { + if (bottom_panel_items[i].button->is_pressed()) + return false; + } + + return true; +} + void EditorNode::hide_bottom_panel() { _bottom_panel_switch(false,0); |
