diff options
| author | oy <Tom_Adams@web.de> | 2011-03-13 12:55:00 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-03-13 12:55:00 +0100 |
| commit | 09dc08859d7e48dbb39c61d0c39ad275719bc82d (patch) | |
| tree | 3e8e5eeda158fea5a809bd068c207774fcad7fae /src/game/client/components/nameplates.cpp | |
| parent | 01ea32f816120d0c4a5bcf01f3978d8390e5ccb4 (diff) | |
| download | zcatch-09dc08859d7e48dbb39c61d0c39ad275719bc82d.tar.gz zcatch-09dc08859d7e48dbb39c61d0c39ad275719bc82d.zip | |
added a function to set the text outline colour and increased readability of nameplates on bright backgrounds. Closes #205
Diffstat (limited to 'src/game/client/components/nameplates.cpp')
| -rw-r--r-- | src/game/client/components/nameplates.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } } |