diff options
| author | Juan Linietsky | 2016-01-25 10:30:47 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-01-25 10:30:47 -0300 |
| commit | 5245adcf81dd61ddb4eac048f6b004f3f455d7ed (patch) | |
| tree | 272c46c2ee422d9fe6d4dfaeca51fa52c264ffb3 /tools/editor/editor_node.cpp | |
| parent | 07e79094802a2eb2d7c0cd64cecf673db386ec5a (diff) | |
| parent | 87517c564b83218871ac53afdad375a9501e6cb8 (diff) | |
| download | godot-5245adcf81dd61ddb4eac048f6b004f3f455d7ed.tar.gz godot-5245adcf81dd61ddb4eac048f6b004f3f455d7ed.tar.zst godot-5245adcf81dd61ddb4eac048f6b004f3f455d7ed.zip | |
Merge branch 'master' of https://github.com/godotengine/godot
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 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); |
