add HowToPlay toggle (I know how to play, and there are too many

startup screens ... probably another coming for the warning screen.)
This commit is contained in:
Glenn Maynard
2002-09-04 21:08:52 +00:00
parent 1a1abeaf3d
commit c8f5c0812c
3 changed files with 13 additions and 1 deletions
+4
View File
@@ -50,6 +50,8 @@ PrefsManager::PrefsManager()
m_iMovieDecodeMS = 2;
m_bUseBGIfNoBanner = false;
m_bDelayedEscape = true;
m_bHowToPlay = true;
/* I'd rather get occasional people asking for support for this even though it's
* already here than lots of people asking why songs aren't being displayed. */
m_bHiddenSongs = false;
@@ -92,6 +94,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
ini.GetValueB( "Options", "DelayedEscape", m_bDelayedEscape );
ini.GetValueB( "Options", "HiddenSongs", m_bHiddenSongs );
ini.GetValueB( "Options", "Vsync", m_bVsync );
ini.GetValueB( "Options", "HowToPlay", m_bHowToPlay );
m_asAdditionalSongFolders.RemoveAll();
CString sAdditionalSongFolders;
@@ -133,6 +136,7 @@ void PrefsManager::SaveGlobalPrefsToDisk()
ini.SetValueB( "Options", "DelayedEscape", m_bDelayedEscape );
ini.SetValueB( "Options", "HiddenSongs", m_bHiddenSongs );
ini.SetValueB( "Options", "Vsync", m_bVsync );
ini.SetValueB( "Options", "HowToPlay", m_bHowToPlay );
ini.SetValue( "Options", "AdditionalSongFolders", join(",", m_asAdditionalSongFolders) );
+1
View File
@@ -49,6 +49,7 @@ public:
float m_fLifeDifficultyScale;
bool m_bAutoPlay;
bool m_bDelayedEscape;
bool m_bHowToPlay;
CStringArray m_asAdditionalSongFolders;
+8 -1
View File
@@ -39,9 +39,16 @@ ScreenHowToPlay::ScreenHowToPlay()
THEME->GetPathTo("Graphics","How To Play Top Edge"),
HELP_TEXT, false, true, TIMER_SECONDS
);
m_Menu.TweenOnScreenFromMenu( SM_None );
this->AddChild( &m_Menu );
if(!PREFSMAN->m_bHowToPlay)
{
this->SendScreenMessage( SM_GoToNextScreen, 0.f );
return;
}
m_Menu.TweenOnScreenFromMenu( SM_None );
CString sHowToPlayPath;
switch( GAMESTATE->m_PlayMode )
{