Skip to content

Commit eae0696

Browse files
committed
Draw debug overlays over game draw
1 parent 31bf97e commit eae0696

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Runtime/CMain.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ struct Application {
344344
}
345345
g_Renderer->EndScene();
346346
}
347+
m_imGuiConsole.PostDraw();
347348
}
348349

349350
void onAppPostDraw() noexcept {

Runtime/ImGuiConsole.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,10 +1401,7 @@ void ImGuiConsole::PreUpdate() {
14011401
if (m_showConsoleVariablesWindow) {
14021402
ShowConsoleVariablesWindow();
14031403
}
1404-
ShowDebugOverlay();
1405-
ShowInputViewer();
14061404
ShowPlayerTransformEditor();
1407-
ShowPipelineProgress();
14081405
m_controllerConfig.show(m_controllerConfigVisible);
14091406
if (preLaunch && m_showPreLaunchSettingsWindow) {
14101407
ShowPreLaunchSettingsWindow();
@@ -1444,6 +1441,12 @@ void ImGuiConsole::PostUpdate() {
14441441
}
14451442
}
14461443

1444+
void ImGuiConsole::PostDraw() {
1445+
ShowDebugOverlay();
1446+
ShowInputViewer();
1447+
ShowPipelineProgress();
1448+
}
1449+
14471450
void ImGuiConsole::Shutdown() {
14481451
dummyWorlds.clear();
14491452
stringTables.clear();

Runtime/ImGuiConsole.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class ImGuiConsole {
5555
ImGuiConsole(CVarManager& cvarMgr, CVarCommons& cvarCommons);
5656
void PreUpdate();
5757
void PostUpdate();
58+
void PostDraw();
5859
void Shutdown();
5960

6061
static void BeginEntityRow(const ImGuiEntityEntry& entry);

0 commit comments

Comments
 (0)