From: FruitieX Date: Tue, 29 Jun 2010 08:19:49 +0000 (+0300) Subject: add a visible highlight to highlightedPanel_prev X-Git-Tag: xonotic-v0.1.0preview~457^2~62 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=49c323c117a361478ab0e0c2727ada63c74a7b07;p=xonotic%2Fxonotic-data.pk3dir.git add a visible highlight to highlightedPanel_prev --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 20df32939..6d56b6314 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -786,6 +786,9 @@ void HUD_Panel_DrawBg(float id, vector pos, vector mySize, float alpha) draw_BorderPicture(pos - '1 1 0' * border, strcat("gfx/hud/", cvar_string("hud_skin"), "/", bg), mySize + '1 1 0' * 2 * border, color, alpha, '1 1 0' * (border/BORDER_MULTIPLIER)); } + + if(highlightedPanel_prev == id) + drawfill(pos - '1 1 0' * border, mySize + '1 1 0' * 2 * border, '1 1 1', .1, DRAWFLAG_ADDITIVE); } void HUD_Panel_DrawProgressBar(vector pos, float vertical, vector mySize, vector color, float alpha, float drawflag)