From 338854fa418d7dc5baacd5e7ff2e8db9fb47248f Mon Sep 17 00:00:00 2001 From: iwubcode Date: Tue, 25 Jul 2023 18:02:10 -0500 Subject: [PATCH] VideoCommon: draw editor UI on screen when it is enabled --- Source/Core/VideoCommon/OnScreenUI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Core/VideoCommon/OnScreenUI.cpp b/Source/Core/VideoCommon/OnScreenUI.cpp index d1c15f7f80..9933cedd1a 100644 --- a/Source/Core/VideoCommon/OnScreenUI.cpp +++ b/Source/Core/VideoCommon/OnScreenUI.cpp @@ -18,6 +18,7 @@ #include "VideoCommon/AbstractPipeline.h" #include "VideoCommon/AbstractShader.h" #include "VideoCommon/FramebufferShaderGen.h" +#include "VideoCommon/GraphicsModEditor/EditorMain.h" #include "VideoCommon/NetPlayChatUI.h" #include "VideoCommon/NetPlayGolfUI.h" #include "VideoCommon/OnScreenDisplay.h" @@ -312,6 +313,13 @@ void OnScreenUI::DrawDebugText() ImGui::End(); } + auto& system = Core::System::GetInstance(); + auto& graphics_mod_editor = system.GetGraphicsModEditor(); + if (graphics_mod_editor.IsEnabled()) + { + graphics_mod_editor.DrawImGui(); + } + if (g_ActiveConfig.bOverlayStats) g_stats.Display();