From 3de4b4c4ed5bf17596fcdfa42f534292ae39c610 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 14 Jun 2022 22:37:43 +0200 Subject: [PATCH] Fade suggest panel among with base panel --- r5dev/gameui/IConsole.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/r5dev/gameui/IConsole.cpp b/r5dev/gameui/IConsole.cpp index 2831635f..0c04897d 100644 --- a/r5dev/gameui/IConsole.cpp +++ b/r5dev/gameui/IConsole.cpp @@ -131,7 +131,7 @@ void CConsole::Draw(void) * SUGGESTION PANEL SETUP * **************************/ { - static int nVars = 2; + int nVars{}; if (CanAutoComplete()) { if (m_bDefaultTheme) @@ -143,8 +143,9 @@ void CConsole::Draw(void) ImGui::SetNextWindowPos(m_ivSuggestWindowPos); ImGui::SetNextWindowSize(m_ivSuggestWindowSize); - ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 1.0f); - ImGui::PushStyleVar(ImGuiStyleVar_WindowMinSize, ImVec2(500, 37)); + ImGui::PushStyleVar(ImGuiStyleVar_WindowMinSize, ImVec2(500, 37)); nVars++; + ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 1.0f); nVars++; + ImGui::PushStyleVar(ImGuiStyleVar_Alpha, m_flFadeAlpha); nVars++; SuggestPanel();