mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Make the ready state indicator a small green star
This commit is contained in:
parent
d158ab0ff0
commit
8ef08b4641
|
@ -393,13 +393,6 @@ float CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const c
|
||||||
RenderTools()->RenderTee(CAnimState::GetIdle(), &TeeInfo, EMOTE_NORMAL, vec2(1.0f, 0.0f), vec2(TeeOffset+TeeLength/2, y+LineHeight/2+Spacing));
|
RenderTools()->RenderTee(CAnimState::GetIdle(), &TeeInfo, EMOTE_NORMAL, vec2(1.0f, 0.0f), vec2(TeeOffset+TeeLength/2, y+LineHeight/2+Spacing));
|
||||||
}
|
}
|
||||||
|
|
||||||
// ready / watching
|
|
||||||
if(ReadyMode && (pInfo->m_pPlayerInfo->m_PlayerFlags&PLAYERFLAG_READY))
|
|
||||||
{
|
|
||||||
if(HighlightedLine)
|
|
||||||
TextRender()->TextOutlineColor(0.0f, 0.1f, 0.0f, 0.5f);
|
|
||||||
TextRender()->TextColor(0.1f, 1.0f, 0.1f, ColorAlpha);
|
|
||||||
}
|
|
||||||
// TODO: make an eye icon or something
|
// TODO: make an eye icon or something
|
||||||
if(RenderDead && pInfo->m_pPlayerInfo->m_PlayerFlags&PLAYERFLAG_WATCHING)
|
if(RenderDead && pInfo->m_pPlayerInfo->m_PlayerFlags&PLAYERFLAG_WATCHING)
|
||||||
TextRender()->TextColor(1.0f, 1.0f, 0.0f, ColorAlpha);
|
TextRender()->TextColor(1.0f, 1.0f, 0.0f, ColorAlpha);
|
||||||
|
@ -408,6 +401,15 @@ float CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const c
|
||||||
TextRender()->SetCursor(&Cursor, NameOffset+TeeLength, y+Spacing, FontSize, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
|
TextRender()->SetCursor(&Cursor, NameOffset+TeeLength, y+Spacing, FontSize, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
|
||||||
Cursor.m_LineWidth = NameLength-TeeLength;
|
Cursor.m_LineWidth = NameLength-TeeLength;
|
||||||
TextRender()->TextEx(&Cursor, m_pClient->m_aClients[pInfo->m_ClientID].m_aName, str_length(m_pClient->m_aClients[pInfo->m_ClientID].m_aName));
|
TextRender()->TextEx(&Cursor, m_pClient->m_aClients[pInfo->m_ClientID].m_aName, str_length(m_pClient->m_aClients[pInfo->m_ClientID].m_aName));
|
||||||
|
// ready / watching
|
||||||
|
if(ReadyMode && (pInfo->m_pPlayerInfo->m_PlayerFlags&PLAYERFLAG_READY))
|
||||||
|
{
|
||||||
|
if(HighlightedLine)
|
||||||
|
TextRender()->TextOutlineColor(0.0f, 0.1f, 0.0f, 0.5f);
|
||||||
|
TextRender()->TextColor(0.1f, 1.0f, 0.1f, ColorAlpha);
|
||||||
|
TextRender()->SetCursor(&Cursor, Cursor.m_X+1, y+Spacing, FontSize, TEXTFLAG_RENDER);
|
||||||
|
TextRender()->TextEx(&Cursor, "*", str_length("*"));
|
||||||
|
}
|
||||||
TextRender()->TextColor(TextColor.r, TextColor.g, TextColor.b, ColorAlpha);
|
TextRender()->TextColor(TextColor.r, TextColor.g, TextColor.b, ColorAlpha);
|
||||||
TextRender()->TextOutlineColor(OutlineColor.r, OutlineColor.g, OutlineColor.b, OutlineColor.a);
|
TextRender()->TextOutlineColor(OutlineColor.r, OutlineColor.g, OutlineColor.b, OutlineColor.a);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue