diff options
| author | oy <Tom_Adams@web.de> | 2011-01-17 16:31:24 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-01-17 16:31:24 +0100 |
| commit | 3b3ca9cd67badc96622b52ed5de6a9a387d47472 (patch) | |
| tree | c3ab3c66ae4fa7817948ae12569c4840c1321fb6 /src/game/client | |
| parent | 99e9d4910a4eb28cde118c0cc42eec750068b02d (diff) | |
| download | zcatch-3b3ca9cd67badc96622b52ed5de6a9a387d47472.tar.gz zcatch-3b3ca9cd67badc96622b52ed5de6a9a387d47472.zip | |
rearranged the goals within the scoreboard a bit
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/components/scoreboard.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/game/client/components/scoreboard.cpp b/src/game/client/components/scoreboard.cpp index 36c847c8..3eda5ff0 100644 --- a/src/game/client/components/scoreboard.cpp +++ b/src/game/client/components/scoreboard.cpp @@ -51,32 +51,26 @@ void CScoreboard::RenderGoals(float x, float y, float w) Graphics()->QuadsEnd(); // render goals - //y = ystart+h-54; - float tw = 0.0f; if(m_pClient->m_Snap.m_pGameobj) { if(m_pClient->m_Snap.m_pGameobj->m_ScoreLimit) { char aBuf[64]; str_format(aBuf, sizeof(aBuf), "%s: %d", Localize("Score limit"), m_pClient->m_Snap.m_pGameobj->m_ScoreLimit); - TextRender()->Text(0, x+20.0f, y, 22.0f, aBuf, -1); - tw += TextRender()->TextWidth(0, 22.0f, aBuf, -1); + TextRender()->Text(0, x, y, 20.0f, aBuf, -1); } if(m_pClient->m_Snap.m_pGameobj->m_TimeLimit) { char aBuf[64]; str_format(aBuf, sizeof(aBuf), Localize("Time limit: %d min"), m_pClient->m_Snap.m_pGameobj->m_TimeLimit); - TextRender()->Text(0, x+220.0f, y, 22.0f, aBuf, -1); - tw += TextRender()->TextWidth(0, 22.0f, aBuf, -1); + TextRender()->Text(0, x+220.0f, y, 20.0f, aBuf, -1); } if(m_pClient->m_Snap.m_pGameobj->m_RoundNum && m_pClient->m_Snap.m_pGameobj->m_RoundCurrent) { char aBuf[64]; str_format(aBuf, sizeof(aBuf), "%s %d/%d", Localize("Round"), m_pClient->m_Snap.m_pGameobj->m_RoundCurrent, m_pClient->m_Snap.m_pGameobj->m_RoundNum); - TextRender()->Text(0, x+450.0f, y, 22.0f, aBuf, -1); - - /*[48c3fd4c][game/scoreboard]: timelimit x:219.428558 - [48c3fd4c][game/scoreboard]: round x:453.142822*/ + float tw = TextRender()->TextWidth(0, 20.0f, aBuf, -1); + TextRender()->Text(0, x+w-tw-20.0f, y, 20.0f, aBuf, -1); } } } |