Merge pull request #8645 from Robyt3/Client-HUD-Score-Team-Colors

Use same Red/Blue team colors for score HUD as for scoreboard
This commit is contained in:
Dennis Felsing 2024-07-24 16:46:53 +00:00 committed by GitHub
commit cd81b1f253
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,9 +216,9 @@ void CHud::RenderScoreHud()
Graphics()->DeleteQuadContainer(m_aScoreInfo[t].m_RoundRectQuadContainerIndex);
if(t == 0)
Graphics()->SetColor(1.0f, 0.0f, 0.0f, 0.25f);
Graphics()->SetColor(0.975f, 0.17f, 0.17f, 0.3f);
else
Graphics()->SetColor(0.0f, 0.0f, 1.0f, 0.25f);
Graphics()->SetColor(0.17f, 0.46f, 0.975f, 0.3f);
m_aScoreInfo[t].m_RoundRectQuadContainerIndex = Graphics()->CreateRectQuadContainer(m_Width - ScoreWidthMax - ImageSize - 2 * Split, StartY + t * 20, ScoreWidthMax + ImageSize + 2 * Split, ScoreSingleBoxHeight, 5.0f, IGraphics::CORNER_L);
}
Graphics()->TextureClear();