mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Show AFK status in info tab
This commit is contained in:
parent
80c4940b7f
commit
149e5b6864
|
@ -1093,10 +1093,16 @@ void CMenus::RenderServerbrowserInfoScoreboard(CUIRect View, const CServerInfo *
|
||||||
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);
|
if(CurrentClient.m_Afk)
|
||||||
|
Color = ColorRGBA(1.0f, 1.0f, 0.5f, 0.15f + Alpha);
|
||||||
|
else
|
||||||
|
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);
|
if(CurrentClient.m_Afk)
|
||||||
|
Color = ColorRGBA(0.4f, 0.75f, 1.0f, 0.15f + Alpha);
|
||||||
|
else
|
||||||
|
Color = ColorRGBA(0.4f, 0.4f, 1.0f, 0.15f + Alpha);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dbg_assert(false, "Invalid friend state");
|
dbg_assert(false, "Invalid friend state");
|
||||||
|
@ -1159,7 +1165,7 @@ void CMenus::RenderServerbrowserInfoScoreboard(CUIRect View, const CServerInfo *
|
||||||
vec2 OffsetToMid;
|
vec2 OffsetToMid;
|
||||||
RenderTools()->GetRenderTeeOffsetToRenderedTee(pIdleState, &TeeInfo, OffsetToMid);
|
RenderTools()->GetRenderTeeOffsetToRenderedTee(pIdleState, &TeeInfo, OffsetToMid);
|
||||||
const vec2 TeeRenderPos = vec2(Skin.x + TeeInfo.m_Size / 2.0f, Skin.y + Skin.h / 2.0f + OffsetToMid.y);
|
const vec2 TeeRenderPos = vec2(Skin.x + TeeInfo.m_Size / 2.0f, Skin.y + Skin.h / 2.0f + OffsetToMid.y);
|
||||||
RenderTools()->RenderTee(pIdleState, &TeeInfo, EMOTE_NORMAL, vec2(1.0f, 0.0f), TeeRenderPos);
|
RenderTools()->RenderTee(pIdleState, &TeeInfo, CurrentClient.m_Afk ? EMOTE_BLINK : EMOTE_NORMAL, vec2(1.0f, 0.0f), TeeRenderPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
// name
|
// name
|
||||||
|
|
Loading…
Reference in a new issue