16 console_log_panel_ = std::make_shared<console_log_panel>();
17 console_log_panel_->set_level(spdlog::level::trace);
20 header_panel_ = std::make_unique<header_panel>(
this);
21 footer_panel_ = std::make_unique<footer_panel>();
22 cenral_dockspace_ = std::make_unique<dockspace>();
24 content_browser_panel_ = std::make_unique<content_browser_panel>(
this);
25 hierarchy_panel_ = std::make_unique<hierarchy_panel>(
this);
26 inspector_panel_ = std::make_unique<inspector_panel>(
this);
27 scene_panel_ = std::make_unique<scene_panel>(
this);
28 game_panel_ = std::make_unique<game_panel>();
29 statistics_panel_ = std::make_unique<statistics_panel>();
30 animation_panel_ = std::make_unique<animation_panel>(
this);
32 deploy_panel_ = std::make_unique<deploy_panel>(
this);
33 project_settings_panel_ = std::make_unique<project_settings_panel>(
this);
34 editor_settings_panel_ = std::make_unique<editor_settings_panel>(
this);
35 style_panel_ = std::make_unique<style_panel>(
this);
36 undo_redo_panel_ = std::make_unique<undo_redo_panel>(
this);
59 content_browser_panel_->deinit(ctx);
60 scene_panel_->deinit(ctx);
61 game_panel_->deinit(ctx);
62 inspector_panel_->deinit(ctx);
63 statistics_panel_->deinit(ctx);
64 animation_panel_->deinit(ctx);
87 auto footer_size = ImGui::GetFrameHeightWithSpacing();
88 auto header_size = ImGui::GetFrameHeightWithSpacing() * 3;
90 header_panel_->on_frame_ui_render(ctx, header_size);
92 cenral_dockspace_->on_frame_ui_render(header_size, footer_size);
100 console_log_panel_->on_frame_ui_render(ctx,
CONSOLE_VIEW);
102 content_browser_panel_->on_frame_ui_render(ctx,
CONTENT_VIEW);
104 scene_panel_->on_frame_ui_render(ctx,
SCENE_VIEW);
106 game_panel_->on_frame_ui_render(ctx,
GAME_VIEW);
110 deploy_panel_->on_frame_ui_render(ctx,
DEPLOY_VIEW);
116 footer_panel_->on_frame_ui_render(ctx,
120 console_log_panel_->draw_last_log_button();
122 cenral_dockspace_->execute_dock_builder_order_and_focus_workaround();
125 style_panel_->on_frame_ui_render();
128 undo_redo_panel_->on_frame_ui_render(ctx);
133 ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 5.f);
134 ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(43.f / 255.f, 43.f / 255.f, 43.f / 255.f, 100.f / 255.f));
137 ImGui::PopStyleVar(1);
138 ImGui::PopStyleColor(1);