mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
fix requested changes
This commit is contained in:
parent
fc23f451b2
commit
0838fd9d04
|
@ -1086,17 +1086,21 @@ void CMenus::RenderServerbrowserInfoScoreboard(CUIRect View, const CServerInfo *
|
||||||
Name = Item.m_Rect;
|
Name = Item.m_Rect;
|
||||||
|
|
||||||
ColorRGBA Color;
|
ColorRGBA Color;
|
||||||
const float alpha = (i % 2 + 1) * 0.05f;
|
const float Alpha = (i % 2 + 1) * 0.05f;
|
||||||
switch(CurrentClient.m_FriendState)
|
switch(CurrentClient.m_FriendState)
|
||||||
{
|
{
|
||||||
case IFriends::FRIEND_NO:
|
case IFriends::FRIEND_NO:
|
||||||
Color = ColorRGBA(1.0f, 1.0f, 1.0f, alpha);
|
Color = ColorRGBA(1.0f, 1.0f, 1.0f, Alpha);
|
||||||
break;
|
break;
|
||||||
case IFriends::FRIEND_PLAYER:
|
case IFriends::FRIEND_PLAYER:
|
||||||
Color = ColorRGBA(0.5f, 1.0f, 0.5f, 0.15f + alpha);
|
Color = ColorRGBA(0.5f, 1.0f, 0.5f, 0.15f + Alpha);
|
||||||
break;
|
break;
|
||||||
case IFriends::FRIEND_CLAN:
|
case IFriends::FRIEND_CLAN:
|
||||||
Color = ColorRGBA(0.4f, 0.4f, 1.0f, 0.15f + alpha);
|
Color = ColorRGBA(0.4f, 0.4f, 1.0f, 0.15f + Alpha);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
dbg_assert(false, "Invalid friend state");
|
||||||
|
dbg_break();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue