@@ -68,7 +68,7 @@ namespace SohGui {
6868 std::shared_ptr<SohMenuBar> mSohMenuBar ;
6969
7070 std::shared_ptr<Ship::GuiWindow> mConsoleWindow ;
71- std::shared_ptr<Ship::GuiWindow > mStatsWindow ;
71+ std::shared_ptr<SohStatsWindow > mStatsWindow ;
7272 std::shared_ptr<Ship::GuiWindow> mGfxDebuggerWindow ;
7373 std::shared_ptr<Ship::GuiWindow> mInputEditorWindow ;
7474
@@ -120,17 +120,15 @@ namespace SohGui {
120120 mSohMenu = std::make_shared<SohMenu>(CVAR_WINDOW (" Menu" ), " Port Menu" );
121121 gui->SetMenu (mSohMenu );
122122
123- mStatsWindow = gui->GetGuiWindow (" Stats" );
124- if (mStatsWindow == nullptr ) {
125- SPDLOG_ERROR (" Could not find stats window" );
126- }
127-
128123 mConsoleWindow = std::make_shared<SohConsoleWindow>(CVAR_WINDOW (" SohConsole" ), " Console##SoH" , ImVec2 (820 , 630 ));
129124 gui->AddGuiWindow (mConsoleWindow );
130125
131126 mGfxDebuggerWindow = std::make_shared<SohGfxDebuggerWindow>(CVAR_WINDOW (" SohGfxDebugger" ), " GfxDebugger##SoH" , ImVec2 (820 , 630 ));
132127 gui->AddGuiWindow (mGfxDebuggerWindow );
133128
129+ mStatsWindow = std::make_shared<SohStatsWindow>(CVAR_WINDOW (" SohStats" ), " Stats##Soh" , ImVec2 (400 , 100 ));
130+ gui->AddGuiWindow (mStatsWindow );
131+
134132 mInputEditorWindow = gui->GetGuiWindow (" Controller Configuration" );
135133 if (mInputEditorWindow == nullptr ) {
136134 SPDLOG_ERROR (" Could not find input editor window" );
0 commit comments