diff options
| author | oy <Tom_Adams@web.de> | 2012-01-08 18:16:38 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2012-01-08 18:16:38 +0100 |
| commit | e960cbdff3bea74edfbca157679dcf65359e0739 (patch) | |
| tree | 3cf2711fdf42f3d2f558cc660746146497526acd /src/game/client/components/scoreboard.cpp | |
| parent | 3811476c6e69824a6a67b913961c4ab4716eda20 (diff) | |
| download | zcatch-e960cbdff3bea74edfbca157679dcf65359e0739.tar.gz zcatch-e960cbdff3bea74edfbca157679dcf65359e0739.zip | |
added a config to display the code string of a country flag instead of the image. Closes #897
Diffstat (limited to 'src/game/client/components/scoreboard.cpp')
| -rw-r--r-- | src/game/client/components/scoreboard.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/game/client/components/scoreboard.cpp b/src/game/client/components/scoreboard.cpp index ae11c7ea..935f7bad 100644 --- a/src/game/client/components/scoreboard.cpp +++ b/src/game/client/components/scoreboard.cpp @@ -273,12 +273,9 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch TextRender()->TextEx(&Cursor, m_pClient->m_aClients[pInfo->m_ClientID].m_aClan, -1); // country flag - Graphics()->TextureSet(m_pClient->m_pCountryFlags->GetByCountryCode(m_pClient->m_aClients[pInfo->m_ClientID].m_Country)->m_Texture); - Graphics()->QuadsBegin(); - Graphics()->SetColor(1.0f, 1.0f, 1.0f, 0.5f); - IGraphics::CQuadItem QuadItem(CountryOffset, y+(Spacing+TeeSizeMod*5.0f)/2.0f, CountryLength, LineHeight-Spacing-TeeSizeMod*5.0f); - Graphics()->QuadsDrawTL(&QuadItem, 1); - Graphics()->QuadsEnd(); + vec4 Color(1.0f, 1.0f, 1.0f, 0.5f); + m_pClient->m_pCountryFlags->Render(m_pClient->m_aClients[pInfo->m_ClientID].m_Country, &Color, + CountryOffset, y+(Spacing+TeeSizeMod*5.0f)/2.0f, CountryLength, LineHeight-Spacing-TeeSizeMod*5.0f); // ping str_format(aBuf, sizeof(aBuf), "%d", clamp(pInfo->m_Latency, 0, 1000)); |