2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 16:31:21 +00:00

Draw debug overlays over game draw

This commit is contained in:
Luke Street 2025-04-06 16:57:18 -06:00
parent 31bf97e309
commit eae0696bea
3 changed files with 8 additions and 3 deletions

View File

@ -344,6 +344,7 @@ public:
}
g_Renderer->EndScene();
}
m_imGuiConsole.PostDraw();
}
void onAppPostDraw() noexcept {

View File

@ -1401,10 +1401,7 @@ void ImGuiConsole::PreUpdate() {
if (m_showConsoleVariablesWindow) {
ShowConsoleVariablesWindow();
}
ShowDebugOverlay();
ShowInputViewer();
ShowPlayerTransformEditor();
ShowPipelineProgress();
m_controllerConfig.show(m_controllerConfigVisible);
if (preLaunch && m_showPreLaunchSettingsWindow) {
ShowPreLaunchSettingsWindow();
@ -1444,6 +1441,12 @@ void ImGuiConsole::PostUpdate() {
}
}
void ImGuiConsole::PostDraw() {
ShowDebugOverlay();
ShowInputViewer();
ShowPipelineProgress();
}
void ImGuiConsole::Shutdown() {
dummyWorlds.clear();
stringTables.clear();

View File

@ -55,6 +55,7 @@ public:
ImGuiConsole(CVarManager& cvarMgr, CVarCommons& cvarCommons);
void PreUpdate();
void PostUpdate();
void PostDraw();
void Shutdown();
static void BeginEntityRow(const ImGuiEntityEntry& entry);