]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Using progressbar CVARs for duel spectator HUD
authorz411 <z411@omaera.org>
Sun, 18 Apr 2021 21:57:58 +0000 (17:57 -0400)
committerz411 <z411@omaera.org>
Sun, 18 Apr 2021 21:57:58 +0000 (17:57 -0400)
qcsrc/client/hud/panel/spect.qc

index 2c153b9250fff1e87a583690b09629aa7f0e8e0c..3bdede227026d96ed8e5518e0bad761f20e95066 100644 (file)
@@ -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