From d23b6f6904f70aaa6fb99ef6c60c076be97ca660 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 23 Oct 2023 10:45:49 -0700 Subject: [PATCH] Allow Frame Counter, Frame Rate, IGT and Room Time to be used without developer --- Runtime/ImGuiConsole.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Runtime/ImGuiConsole.cpp b/Runtime/ImGuiConsole.cpp index f6282e400..18ca4ca26 100644 --- a/Runtime/ImGuiConsole.cpp +++ b/Runtime/ImGuiConsole.cpp @@ -813,11 +813,11 @@ static std::string BytesToString(size_t bytes) { } void ImGuiConsole::ShowDebugOverlay() { - if (!m_developer) { + if (!m_developer && !m_frameCounter && !m_frameRate && !m_inGameTime && !m_roomTimer) { return; } - if (!m_frameCounter && !m_frameRate && !m_inGameTime && !m_roomTimer && !m_playerInfo && !m_areaInfo && - !m_worldInfo && !m_randomStats && !m_resourceStats && !m_pipelineInfo && !m_drawCallInfo && !m_bufferInfo) { + if (!m_playerInfo && !m_areaInfo && !m_worldInfo && !m_randomStats && !m_resourceStats && !m_pipelineInfo && + !m_drawCallInfo && !m_bufferInfo) { return; } ImGuiIO& io = ImGui::GetIO(); @@ -1058,7 +1058,8 @@ void ImGuiConsole::ShowInputViewer() { ImGui::SetNextWindowBgAlpha(0.65f); if (ImGui::Begin("Input Overlay", nullptr, windowFlags)) { /* If the position has changed and we're not in a corner, grab it and store it */ - if (m_inputOverlayCorner == -1 && (ImGui::GetWindowPos().x != m_inputOverlayPos.x() || ImGui::GetWindowPos().y != m_inputOverlayPos.y())) { + if (m_inputOverlayCorner == -1 && + (ImGui::GetWindowPos().x != m_inputOverlayPos.x() || ImGui::GetWindowPos().y != m_inputOverlayPos.y())) { m_inputOverlayPos = ImGui::GetWindowPos(); m_cvarCommons.m_debugInputOverlayPos->fromVec2f(m_inputOverlayPos); }