add calorie tracking

clean up time formatting functions
This commit is contained in:
Chris Danford
2004-02-22 19:51:46 +00:00
parent e8347d25e4
commit 6154c14f86
18 changed files with 139 additions and 49 deletions
+7 -3
View File
@@ -266,8 +266,6 @@ void ScreenSystemLayer::UpdateTimestampAndSkips()
m_SkipBackground.SetDiffuse(RageColor(0,0,0,0.4f));
}
CString time(SecondsToTime(RageTimer::GetTimeSinceStart()));
/* Use our own timer, so we ignore `/tab. */
const float UpdateTime = SkipTimer.GetDeltaTime();
@@ -291,6 +289,8 @@ void ScreenSystemLayer::UpdateTimestampAndSkips()
if(skip)
{
CString time(SecondsToMMSSMsMs(RageTimer::GetTimeSinceStart()));
static const RageColor colors[] = {
RageColor(0,0,0,0), /* unused */
RageColor(0.2f,0.2f,1,1), /* light blue */
@@ -306,7 +306,11 @@ void ScreenSystemLayer::UpdateTimestampAndSkips()
}
}
m_textTime.SetText( time );
if(PREFSMAN->m_bTimestamping)
{
CString time(SecondsToMMSSMsMs(RageTimer::GetTimeSinceStart()));
m_textTime.SetText( time );
}
}
void ScreenSystemLayer::Update( float fDeltaTime )