@@ -51,6 +51,9 @@ public override async Task InitAsync()
51
51
{
52
52
SetImGuiDesign ( ) ;
53
53
54
+ // Enable Dockspace
55
+ ImGui . GetIO ( ) . ConfigFlags |= ImGuiConfigFlags . DockingEnable ;
56
+
54
57
_fuControl = new PointCloudRenderingControl ( RC ) ;
55
58
ApplicationIsShuttingDown += OnShuttingDown ;
56
59
EndOfFrame += _fuControl . OnLoadNewFile ;
@@ -86,12 +89,9 @@ public override void Resize(ResizeEventArgs e)
86
89
87
90
public override void RenderAFrame ( )
88
91
{
89
- // Enable Dockspace
90
- ImGui . GetIO ( ) . ConfigFlags |= ImGuiConfigFlags . DockingEnable ;
91
-
92
92
// Set Window flags for Dockspace
93
- var wndDockspaceFlags =
94
- ImGuiWindowFlags . NoDocking
93
+ var wndDockspaceFlags =
94
+ ImGuiWindowFlags . NoDocking
95
95
| ImGuiWindowFlags . NoTitleBar
96
96
| ImGuiWindowFlags . NoCollapse
97
97
| ImGuiWindowFlags . NoResize
@@ -148,8 +148,9 @@ public override void RenderAFrame()
148
148
// check if mouse is inside window, if true, accept update() inputs
149
149
_isMouseInsideFuControl = ImGui . IsItemHovered ( ) ;
150
150
151
- ImGui . EndChild ( ) ;
152
- ImGui . End ( ) ;
151
+ ImGui . EndChild ( ) ; // GameRender
152
+ ImGui . End ( ) ; // Viewport
153
+ ImGui . End ( ) ; // DockSpace
153
154
154
155
Draw ( ) ;
155
156
DrawFilePickerDialog ( ) ;
@@ -382,7 +383,7 @@ private static void SetImGuiDesign()
382
383
colors [ ( int ) ImGuiCol . TextSelectedBg ] = new Vector4 ( 0.26f , 0.59f , 0.98f , 0.35f ) ;
383
384
//colors[(int)ImGuiCol.ModalWindowDarkening] = new Vector4(0.20f, 0.20f, 0.20f, 0.35f);
384
385
colors [ ( int ) ImGuiCol . DragDropTarget ] = new Vector4 ( 0.26f , 0.59f , 0.98f , 0.95f ) ;
385
- colors [ ( int ) ImGuiCol . NavHighlight ] = colors [ ( int ) ImGuiCol . HeaderHovered ] ;
386
+ // colors[(int)ImGuiCol.NavHighlight] = colors[(int)ImGuiCol.HeaderHovered];
386
387
colors [ ( int ) ImGuiCol . NavWindowingHighlight ] = new Vector4 ( 0.70f , 0.70f , 0.70f , 0.70f ) ;
387
388
}
388
389
}
0 commit comments