explicit load for MenuTimer, so we don't load anything if we don't want it

This commit is contained in:
Glenn Maynard
2005-07-18 02:08:15 +00:00
parent 691c7f0c68
commit d2e4190a4e
4 changed files with 6 additions and 0 deletions
+3
View File
@@ -27,7 +27,10 @@ MenuTimer::MenuTimer() :
m_fStallSeconds = 0;
m_fStallSecondsLeft = MAX_STALL_SECONDS;
m_bPaused = false;
}
void MenuTimer::Load()
{
for( int i=0; i<NUM_MENU_TIMER_TEXTS; i++ )
{
m_text[i].LoadFromFont( THEME->GetPathF("MenuTimer","numbers") );
+1
View File
@@ -15,6 +15,7 @@ class MenuTimer : public ActorFrame
{
public:
MenuTimer();
void Load();
virtual void Update( float fDeltaTime );
+1
View File
@@ -244,6 +244,7 @@ ScreenNameEntry::ScreenNameEntry( CString sClassName ) : Screen( sClassName )
}
m_Timer.Load();
if( !PREFSMAN->m_bMenuTimer )
m_Timer.Disable();
else
+1
View File
@@ -92,6 +92,7 @@ void ScreenWithMenuElements::Init()
m_bTimerEnabled = (TIMER_SECONDS != -1);
if( m_bTimerEnabled )
{
m_MenuTimer->Load();
m_MenuTimer->SetName( "Timer" );
if( TIMER_STEALTH )
m_MenuTimer->EnableStealth( true );