From 9eb75f242e4b52dd228bcf36dd6b7fcf73cebdd1 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Tue, 29 Jun 2010 11:56:37 +0300 Subject: [PATCH] fade out the visible highlight when doubleclicking panel --- qcsrc/client/hud.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index c150bd66c..4f8ce3572 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -788,7 +788,7 @@ void HUD_Panel_DrawBg(float id, vector pos, vector mySize, float alpha) } if(highlightedPanel_prev == id) - drawfill(pos - '1 1 0' * border, mySize + '1 1 0' * 2 * border, '1 1 1', .1, DRAWFLAG_ADDITIVE); + drawfill(pos - '1 1 0' * border, mySize + '1 1 0' * 2 * border, '1 1 1', .1 * (1 - cvar("_menu_alpha")), DRAWFLAG_ADDITIVE); } void HUD_Panel_DrawProgressBar(vector pos, float vertical, vector mySize, vector color, float alpha, float drawflag) -- 2.39.2