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
This commit is contained in:
ac-stef
2017-06-08 00:39:24 +02:00
parent 83d0199867
commit 2a52dc0069
+2 -2
View File
@@ -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]);