about summary refs log tree commit diff
path: root/src/game/client/components
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-12 18:34:16 +0100
committeroy <Tom_Adams@web.de>2011-03-12 18:34:16 +0100
commit5c723f5d2fbbf70ad69874a6ca085726151ec0ae (patch)
treef1b5d1bb92ae008f8c5bee2fa63f4766bb48b059 /src/game/client/components
parentb834426548107af96c2568af22cbf8604f230965 (diff)
downloadzcatch-5c723f5d2fbbf70ad69874a6ca085726151ec0ae.tar.gz
zcatch-5c723f5d2fbbf70ad69874a6ca085726151ec0ae.zip
added info about the actual recorded demo length in the notification box
Diffstat (limited to 'src/game/client/components')
-rw-r--r--src/game/client/components/scoreboard.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/client/components/scoreboard.cpp b/src/game/client/components/scoreboard.cpp
index 0d355456..95b620c4 100644
--- a/src/game/client/components/scoreboard.cpp
+++ b/src/game/client/components/scoreboard.cpp
@@ -259,7 +259,7 @@ void CScoreboard::RenderRecordingNotification(float x)
 	Graphics()->TextureSet(-1);
 	Graphics()->QuadsBegin();
 	Graphics()->SetColor(0.0f, 0.0f, 0.0f, 0.4f);
-	RenderTools()->DrawRoundRectExt(x, 0.0f, 120.0f, 50.0f, 15.0f, CUI::CORNER_B);
+	RenderTools()->DrawRoundRectExt(x, 0.0f, 180.0f, 50.0f, 15.0f, CUI::CORNER_B);
 	Graphics()->QuadsEnd();
 
 	//draw the red dot
@@ -269,7 +269,10 @@ void CScoreboard::RenderRecordingNotification(float x)
 	Graphics()->QuadsEnd();
 
 	//draw the text
-	TextRender()->Text(0, x+50.0f, 8.0f, 24.0f, Localize("REC"), -1);
+	char aBuf[64];
+	int Seconds = m_pClient->DemoRecorder()->Length()/SERVER_TICK_SPEED;
+	str_format(aBuf, sizeof(aBuf), Localize("REC %3d:%02d"), Seconds/60, Seconds%60);
+	TextRender()->Text(0, x+50.0f, 10.0f, 20.0f, aBuf, -1);
 }
 
 void CScoreboard::OnRender()