From 2a52dc0069257ea3210ecf8e31fee82bbde31b65 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Thu, 8 Jun 2017 00:39:24 +0200 Subject: [PATCH] third option for flag score hud transparency flagscorehudtransparency 0|1|2 0: no transparency, icon set "flag gone" 1: transparency, icon set "flag gone" 2: transparency, classic icon set (default) DOCREF flagscorehudtransparency --- source/src/renderhud.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index f849edfd..ca5acee5 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -83,7 +83,7 @@ VARP(hideradar, 0, 0, 1); VARP(hidecompass, 0, 0, 1); VARP(hideteam, 0, 0, 1); VARP(hideteamscorehud, 0, 0, 1); -VARP(flagscorehudtransparency, 0, 1, 1); +VARP(flagscorehudtransparency, 0, 2, 2); VARP(hideeditinfopanel, 0, 0, 1); VARP(hidevote, 0, 0, 2); VARP(hidehudmsgs, 0, 0, 1); @@ -1072,7 +1072,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat if(!offs || scores[2] || scores[3]) loopi(2) // flag state or frag-counter { bool inbase = flaginfos[i].state == CTFF_INBASE || offs; - drawctficon(i*120+VIRTW/4.0f*3.0f, 1650, 120, i + (inbase || flagscorehudtransparency ? 0 : 2), offs / 2, 1/4.0f, inbase || !flagscorehudtransparency ? 255 : 100); + drawctficon(i*120+VIRTW/4.0f*3.0f, 1650, 120, i + (inbase || flagscorehudtransparency == 2 ? 0 : 2), offs / 2, 1/4.0f, inbase || !flagscorehudtransparency ? 255 : 100); if(m_teammode) { defformatstring(count)("\f%c%d", cc[i], scores[i + offs]);