From 09dc08859d7e48dbb39c61d0c39ad275719bc82d Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 13 Mar 2011 12:55:00 +0100 Subject: added a function to set the text outline colour and increased readability of nameplates on bright backgrounds. Closes #205 --- src/game/client/components/nameplates.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/client/components/nameplates.cpp') diff --git a/src/game/client/components/nameplates.cpp b/src/game/client/components/nameplates.cpp index 5664cb4e..9fa7e06a 100644 --- a/src/game/client/components/nameplates.cpp +++ b/src/game/client/components/nameplates.cpp @@ -32,6 +32,7 @@ void CNamePlates::RenderNameplate( const char *pName = m_pClient->m_aClients[pPlayerInfo->m_ClientID].m_aName; float tw = TextRender()->TextWidth(0, FontSize, pName, -1); + TextRender()->TextOutlineColor(0.0f, 0.0f, 0.0f, 0.5f*a); TextRender()->TextColor(1.0f, 1.0f, 1.0f, a); if(m_pClient->m_Snap.m_pGameInfoObj && m_pClient->m_Snap.m_pGameInfoObj->m_GameFlags&GAMEFLAG_TEAMS) { @@ -51,6 +52,7 @@ void CNamePlates::RenderNameplate( } TextRender()->TextColor(1,1,1,1); + TextRender()->TextOutlineColor(0.0f, 0.0f, 0.0f, 0.3f); } } -- cgit 1.4.1