ScreenInstructions, ScreenCaution, ScreenStyleSplash, and
ScreenGameOver are almost identical and could be merged with a little
Lua work ...
This commit is contained in:
Glenn Maynard
2004-08-26 04:25:16 +00:00
parent df7288acd4
commit 8dfbd14434
+2 -5
View File
@@ -35,13 +35,10 @@ ScreenInstructions::ScreenInstructions( CString sName ) : ScreenWithMenuElements
}
}
CString sHowToPlayPath;
if( GAMESTATE->m_PlayMode != PLAY_MODE_INVALID )
sHowToPlayPath = THEME->GetPathG(m_sName,PlayModeToString(GAMESTATE->m_PlayMode)) ;
else
if( GAMESTATE->m_PlayMode == PLAY_MODE_INVALID )
RageException::Throw( "The PlayMode has not been set. A theme must set the PlayMode before showing ScreenInstructions." );
m_sprHowToPlay.Load( sHowToPlayPath );
m_sprHowToPlay.Load( THEME->GetPathG(m_sName,PlayModeToString(GAMESTATE->m_PlayMode)) );
m_sprHowToPlay.SetXY( CENTER_X, CENTER_Y );
this->AddChild( &m_sprHowToPlay );