From 49c323c117a361478ab0e0c2727ada63c74a7b07 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Tue, 29 Jun 2010 11:19:49 +0300 Subject: [PATCH] add a visible highlight to highlightedPanel_prev --- qcsrc/client/hud.qc | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.2