From: FruitieX Date: Tue, 29 Jun 2010 08:56:37 +0000 (+0300) Subject: fade out the visible highlight when doubleclicking panel X-Git-Tag: xonotic-v0.1.0preview~457^2~59 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9eb75f242e4b52dd228bcf36dd6b7fcf73cebdd1;p=xonotic%2Fxonotic-data.pk3dir.git fade out the visible highlight when doubleclicking panel --- 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)