From b002c4ebc89a519c52fe7c81863ab841ba6660c2 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Mon, 14 Jun 2010 00:05:51 +0300 Subject: [PATCH] do not force a minalpha on panels when the config dialog is up --- qcsrc/client/hud.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index fa1bc2545..9d1b6816b 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -826,7 +826,9 @@ float HUD_Panel_GetBgAlpha(float id) if(alpha == "") alpha = cvar_string("hud_bg_alpha"); - if(hud_configure) + if(hud_configure && disable_menu_alphacheck == 2 && highlightedPanel == id) // do not set a minalpha cap when showing the config dialog for this panel + alpha = ftos((1 - cvar("_menu_alpha")) * max(cvar("hud_configure_bg_minalpha"), stof(alpha)) + (cvar("_menu_alpha")) * stof(alpha)); + else if(hud_configure) alpha = ftos(max(cvar("hud_configure_bg_minalpha"), stof(alpha))); if(hud_configure && !cvar(strcat("hud_", HUD_Panel_GetName(id)))) // ALWAYS show disabled panels at 0.25 alpha when in config mode -- 2.39.2