]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fade out the visible highlight when doubleclicking panel
authorFruitieX <rasse@rasse-lappy.localdomain>
Tue, 29 Jun 2010 08:56:37 +0000 (11:56 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Tue, 29 Jun 2010 08:56:37 +0000 (11:56 +0300)
qcsrc/client/hud.qc

index c150bd66c110c8d077bdb20c02257fc9104d0b8f..4f8ce3572cf00aa2292e3e4fb07e04dbcd101dfd 100644 (file)
@@ -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)