You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #11399 from toger5/bottom_panel_debugger
Bottom panel debugger
This commit is contained in:
@@ -308,6 +308,10 @@ void EditorNode::_notification(int p_what) {
|
||||
}
|
||||
_update_scene_tabs();
|
||||
|
||||
// debugger area
|
||||
if (ScriptEditor::get_singleton()->get_debugger()->is_visible())
|
||||
bottom_panel->add_style_override("panel", gui_base->get_stylebox("BottomPanelDebuggerOverride", "EditorStyles"));
|
||||
|
||||
//_update_icons
|
||||
for (int i = 0; i < singleton->main_editor_buttons.size(); i++) {
|
||||
main_editor_buttons[i]->set_icon(gui_base->get_icon(singleton->main_editor_buttons[i]->get_name(), "EditorIcons"));
|
||||
@@ -4062,29 +4066,25 @@ void EditorNode::_bottom_panel_switch(bool p_enable, int p_idx) {
|
||||
ERR_FAIL_INDEX(p_idx, bottom_panel_items.size());
|
||||
|
||||
if (p_enable) {
|
||||
// this is the debug panel wich uses tabs, so the top section should be smaller
|
||||
if (ScriptEditor::get_singleton()->get_debugger() == bottom_panel_items[p_idx].control) {
|
||||
Ref<StyleBoxFlat> style_panel_invisible_top = gui_base->get_stylebox("debugger_panel", "EditorStyles");
|
||||
bottom_panel->add_style_override("panel", style_panel_invisible_top);
|
||||
} else {
|
||||
bottom_panel->add_style_override("panel", gui_base->get_stylebox("panel", "TabContainer"));
|
||||
}
|
||||
for (int i = 0; i < bottom_panel_items.size(); i++) {
|
||||
|
||||
bottom_panel_items[i].button->set_pressed(i == p_idx);
|
||||
bottom_panel_items[i].control->set_visible(i == p_idx);
|
||||
}
|
||||
if (ScriptEditor::get_singleton()->get_debugger() == bottom_panel_items[p_idx].control) { // this is the debug panel wich uses tabs, so the top section should be smaller
|
||||
bottom_panel->add_style_override("panel", gui_base->get_stylebox("BottomPanelDebuggerOverride", "EditorStyles"));
|
||||
} else {
|
||||
bottom_panel->add_style_override("panel", gui_base->get_stylebox("panel", "TabContainer"));
|
||||
}
|
||||
center_split->set_dragger_visibility(SplitContainer::DRAGGER_VISIBLE);
|
||||
center_split->set_collapsed(false);
|
||||
} else {
|
||||
bottom_panel->add_style_override("panel", gui_base->get_stylebox("panel", "TabContainer"));
|
||||
|
||||
for (int i = 0; i < bottom_panel_items.size(); i++) {
|
||||
|
||||
bottom_panel_items[i].button->set_pressed(false);
|
||||
bottom_panel_items[i].control->set_visible(false);
|
||||
}
|
||||
|
||||
center_split->set_dragger_visibility(SplitContainer::DRAGGER_HIDDEN);
|
||||
center_split->set_collapsed(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user