aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_node.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-01-25 00:30:14 -0300
committerJuan Linietsky2016-01-25 00:30:14 -0300
commit31a4762feab58d1eb68d02c9591a80662d383361 (patch)
tree4c35565630c62e46bc68036846bcaa2d5cd522af /tools/editor/editor_node.cpp
parent16b8b97472752bdf4753ef4a9bee9b7a687fa1cd (diff)
parenta3e491435593f75e394b8ec72c192d3119bf72d0 (diff)
downloadgodot-31a4762feab58d1eb68d02c9591a80662d383361.tar.gz
godot-31a4762feab58d1eb68d02c9591a80662d383361.tar.zst
godot-31a4762feab58d1eb68d02c9591a80662d383361.zip
Merge pull request #3435 from neikeq/output_focus_steal
Fix Output panel annoying focus steal
Diffstat (limited to 'tools/editor/editor_node.cpp')
-rw-r--r--tools/editor/editor_node.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index 9fe76a738..79f5e6640 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -4592,6 +4592,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);