From: z411 Date: Sun, 18 Apr 2021 21:57:58 +0000 (-0400) Subject: Using progressbar CVARs for duel spectator HUD X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=469979f200fa58f38dc28221b6c34623112bd5e4;p=xonotic%2Fxonotic-data.pk3dir.git Using progressbar CVARs for duel spectator HUD --- diff --git a/qcsrc/client/hud/panel/spect.qc b/qcsrc/client/hud/panel/spect.qc index 2c153b925..3bdede227 100644 --- a/qcsrc/client/hud/panel/spect.qc +++ b/qcsrc/client/hud/panel/spect.qc @@ -216,7 +216,7 @@ void HUD_SpectHUD_drawDuelScore(vector pos, entity pl, bool invert) else tmp.x += teamscore_size.x; - drawfill(tmp, vec2(health, health_sz.y), '1 0 0', 0.7, DRAWFLAG_NORMAL); + drawfill(tmp, vec2(health, health_sz.y), autocvar_hud_progressbar_health_color, 0.7, DRAWFLAG_NORMAL); } if(armor) { @@ -228,7 +228,7 @@ void HUD_SpectHUD_drawDuelScore(vector pos, entity pl, bool invert) else tmp.x += teamscore_size.x; - drawfill(tmp, vec2(armor, armor_sz.y), '0 1 0', 0.7, DRAWFLAG_NORMAL); + drawfill(tmp, vec2(armor, armor_sz.y), autocvar_hud_progressbar_armor_color, 0.7, DRAWFLAG_NORMAL); } // Player name