From 3b3ca9cd67badc96622b52ed5de6a9a387d47472 Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 17 Jan 2011 16:31:24 +0100 Subject: rearranged the goals within the scoreboard a bit --- src/game/client/components/scoreboard.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/game/client') 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); } } } -- cgit 1.4.1