From 0807abc08eab5a7ad3d29c8200286c59019f1aa3 Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Sat, 20 Feb 2021 14:32:43 -0800 Subject: [PATCH] created default view for lumenarium --- src/app/editor/panels/foldhaus_panel_types.h | 1 - src/app/foldhaus_app.cpp | 22 +++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/app/editor/panels/foldhaus_panel_types.h b/src/app/editor/panels/foldhaus_panel_types.h index 85c93ed..9177cdd 100644 --- a/src/app/editor/panels/foldhaus_panel_types.h +++ b/src/app/editor/panels/foldhaus_panel_types.h @@ -10,7 +10,6 @@ enum panel_type { PanelType_AnimationTimeline, PanelType_DMXView, PanelType_HierarchyView, - PanelType_NodeGraph, PanelType_ProfilerView, PanelType_AssemblyDebug, }; diff --git a/src/app/foldhaus_app.cpp b/src/app/foldhaus_app.cpp index fe40c48..a1537ea 100644 --- a/src/app/foldhaus_app.cpp +++ b/src/app/foldhaus_app.cpp @@ -61,7 +61,27 @@ INITIALIZE_APPLICATION(InitializeApplication) GlobalDebugServices->Interface.RenderSculpture = true; PanelSystem_Init(&State->PanelSystem, GlobalPanelDefs, GlobalPanelDefsCount, &State->Permanent); - PanelSystem_PushPanel(&State->PanelSystem, PanelType_SculptureView, State, Context); + { + panel* RootPanel = PanelSystem_PushPanel(&State->PanelSystem, PanelType_SculptureView, State, Context); + SplitPanel(RootPanel, .25f, PanelSplit_Horizontal, &State->PanelSystem, State, Context); + + panel* AnimPanel = RootPanel->Bottom; + Panel_SetType(AnimPanel, &State->PanelSystem, PanelType_AnimationTimeline, State, Context); + + panel* TopPanel = RootPanel->Top; + SplitPanel(TopPanel, .5f, PanelSplit_Vertical, &State->PanelSystem, State, Context); + + panel* LeftPanel = TopPanel->Left; + SplitPanel(LeftPanel, .5f, PanelSplit_Vertical, &State->PanelSystem, State, Context); + + panel* Profiler = LeftPanel->Right; + Panel_SetType(Profiler, &State->PanelSystem, PanelType_ProfilerView, State, Context); + + panel* Hierarchy = LeftPanel->Left; + Panel_SetType(Hierarchy, &State->PanelSystem, PanelType_HierarchyView, State, Context); + + } + State->Modes = OperationModeSystemInit(&State->Permanent, Context.ThreadContext); State->UserSpaceDesc = BlumenLumen_UserSpaceCreate();