mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Better scoreboard colors
This commit is contained in:
parent
823a04333a
commit
5b07793c16
|
@ -359,10 +359,8 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch
|
|||
{
|
||||
Graphics()->TextureSet(-1);
|
||||
Graphics()->QuadsBegin();
|
||||
float r = (DDTeam % 22) / 22.0f;
|
||||
float g = ((DDTeam - 22) % 22) / 22.0f;
|
||||
float b = ((DDTeam - 44) % 22) / 22.0f;
|
||||
Graphics()->SetColor(r, g, b, 0.5f);
|
||||
vec3 rgb = HslToRgb(vec3(DDTeam / 64.0f, 1.0f, 0.5f));
|
||||
Graphics()->SetColor(rgb.r, rgb.g, rgb.b, 0.5f);
|
||||
|
||||
int Corners = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue