mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
apply alpha to spec nameplates
This commit is contained in:
parent
f3466e05ba
commit
78bcc1d8fc
|
@ -113,10 +113,18 @@ void CNamePlates::RenderNameplate(
|
||||||
TColor.Set(rgb.r, rgb.g, rgb.b, g_Config.m_ClShowOthersAlpha / 100.0f);
|
TColor.Set(rgb.r, rgb.g, rgb.b, g_Config.m_ClShowOthersAlpha / 100.0f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if(!m_pClient->m_Snap.m_aCharacters[ClientID].m_Active)
|
||||||
|
{
|
||||||
|
TOutlineColor.Set(0.0f, 0.0f, 0.0f, 0.2f * g_Config.m_ClShowOthersAlpha / 100.0f);
|
||||||
|
TColor.Set(rgb.r, rgb.g, rgb.b, g_Config.m_ClShowOthersAlpha / 100.0f);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
TOutlineColor.Set(0.0f, 0.0f, 0.0f, 0.5f*a);
|
TOutlineColor.Set(0.0f, 0.0f, 0.0f, 0.5f*a);
|
||||||
TColor.Set(rgb.r, rgb.g, rgb.b, a);
|
TColor.Set(rgb.r, rgb.g, rgb.b, a);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(g_Config.m_ClNameplatesTeamcolors && m_pClient->m_Snap.m_pGameInfoObj && m_pClient->m_Snap.m_pGameInfoObj->m_GameFlags&GAMEFLAG_TEAMS)
|
if(g_Config.m_ClNameplatesTeamcolors && m_pClient->m_Snap.m_pGameInfoObj && m_pClient->m_Snap.m_pGameInfoObj->m_GameFlags&GAMEFLAG_TEAMS)
|
||||||
{
|
{
|
||||||
if(m_pClient->m_aClients[ClientID].m_Team == TEAM_RED)
|
if(m_pClient->m_aClients[ClientID].m_Team == TEAM_RED)
|
||||||
|
|
Loading…
Reference in a new issue