add an option to not display the caution screen

This commit is contained in:
Glenn Maynard
2002-12-15 10:07:27 +00:00
parent c3435782d1
commit ab179acc1a
5 changed files with 15 additions and 1 deletions
+1
View File
@@ -725,6 +725,7 @@ Announcer=Choose from this list of installed annoucner packs.::For more informat
Theme=Choose from this list of installed theme packs.::For more information about creating theme packs, see the README. Theme=Choose from this list of installed theme packs.::For more information about creating theme packs, see the README.
NoteSkin=Choose from this list of installed note skins.::For more information about creating a note skin, see the README. NoteSkin=Choose from this list of installed note skins.::For more information about creating a note skin, see the README.
HowToPlay=Toggle whether the How To Play screen is shown. HowToPlay=Toggle whether the How To Play screen is shown.
Caution=Toggle whether the Caution screen is shown.
[ScreenNetworkWaiting] [ScreenNetworkWaiting]
ServerInfoX=320 ServerInfoX=320
+3
View File
@@ -60,6 +60,7 @@ PrefsManager::PrefsManager()
m_bUseBGIfNoBanner = false; m_bUseBGIfNoBanner = false;
m_bDelayedEscape = true; m_bDelayedEscape = true;
m_bHowToPlay = true; m_bHowToPlay = true;
m_bShowDontDie = true;
m_bArcadeOptionsNavigation = false; m_bArcadeOptionsNavigation = false;
m_iUnloadTextureDelaySeconds = 0; // disabled 60*30; // 30 mins m_iUnloadTextureDelaySeconds = 0; // disabled 60*30; // 30 mins
m_bCoinOpMode = false; m_bCoinOpMode = false;
@@ -112,6 +113,7 @@ PrefsManager::~PrefsManager()
ini.GetValueB( "Options", "HiddenSongs", m_bHiddenSongs ); ini.GetValueB( "Options", "HiddenSongs", m_bHiddenSongs );
ini.GetValueB( "Options", "Vsync", m_bVsync ); ini.GetValueB( "Options", "Vsync", m_bVsync );
ini.GetValueB( "Options", "HowToPlay", m_bHowToPlay ); ini.GetValueB( "Options", "HowToPlay", m_bHowToPlay );
ini.GetValueB( "Options", "Caution", m_bShowDontDie );
ini.GetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation ); ini.GetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation );
ini.GetValue ( "Options", "DWIPath", m_DWIPath ); ini.GetValue ( "Options", "DWIPath", m_DWIPath );
ini.GetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds ); ini.GetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
@@ -164,6 +166,7 @@ void PrefsManager::SaveGlobalPrefsToDisk()
ini.SetValueB( "Options", "HiddenSongs", m_bHiddenSongs ); ini.SetValueB( "Options", "HiddenSongs", m_bHiddenSongs );
ini.SetValueB( "Options", "Vsync", m_bVsync ); ini.SetValueB( "Options", "Vsync", m_bVsync );
ini.SetValueB( "Options", "HowToPlay", m_bHowToPlay ); ini.SetValueB( "Options", "HowToPlay", m_bHowToPlay );
ini.SetValueB( "Options", "Caution", m_bShowDontDie );
ini.SetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation ); ini.SetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation );
ini.SetValue ( "Options", "DWIPath", m_DWIPath ); ini.SetValue ( "Options", "DWIPath", m_DWIPath );
ini.SetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds ); ini.SetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
+1 -1
View File
@@ -49,7 +49,7 @@ public:
float m_fJudgeWindowGoodPercent; float m_fJudgeWindowGoodPercent;
bool m_bAutoPlay; bool m_bAutoPlay;
bool m_bDelayedEscape; bool m_bDelayedEscape;
bool m_bHowToPlay; bool m_bHowToPlay, m_bShowDontDie;
bool m_bArcadeOptionsNavigation; bool m_bArcadeOptionsNavigation;
bool m_bCoinOpMode; bool m_bCoinOpMode;
@@ -31,6 +31,7 @@ enum {
AO_THEME, AO_THEME,
AO_SKIN, AO_SKIN,
AO_HOWTOPLAY, AO_HOWTOPLAY,
AO_CAUTION,
NUM_APPEARANCE_OPTIONS_LINES NUM_APPEARANCE_OPTIONS_LINES
}; };
@@ -39,6 +40,7 @@ OptionRowData g_AppearanceOptionsLines[NUM_APPEARANCE_OPTIONS_LINES] = {
{ "Theme", 0, {""} }, // fill this in on ImportOptions() { "Theme", 0, {""} }, // fill this in on ImportOptions()
{ "Note\nSkin", 0, {""} }, // fill this in on ImportOptions() { "Note\nSkin", 0, {""} }, // fill this in on ImportOptions()
{ "How To\nPlay", 2, {"SKIP","SHOW"} }, { "How To\nPlay", 2, {"SKIP","SHOW"} },
{ "Caution", 2, {"SKIP","SHOW"} },
}; };
ScreenAppearanceOptions::ScreenAppearanceOptions() : ScreenAppearanceOptions::ScreenAppearanceOptions() :
@@ -149,6 +151,7 @@ void ScreenAppearanceOptions::ImportOptions()
m_iSelectedOption[0][AO_SKIN] = 0; m_iSelectedOption[0][AO_SKIN] = 0;
m_iSelectedOption[0][AO_HOWTOPLAY] = PREFSMAN->m_bHowToPlay? 1:0; m_iSelectedOption[0][AO_HOWTOPLAY] = PREFSMAN->m_bHowToPlay? 1:0;
m_iSelectedOption[0][AO_CAUTION] = PREFSMAN->m_bShowDontDie? 1:0;
} }
void ScreenAppearanceOptions::ExportOptions() void ScreenAppearanceOptions::ExportOptions()
@@ -171,6 +174,7 @@ void ScreenAppearanceOptions::ExportOptions()
GAMEMAN->SwitchNoteSkin( sNewSkin ); GAMEMAN->SwitchNoteSkin( sNewSkin );
PREFSMAN->m_bHowToPlay = !!m_iSelectedOption[0][AO_HOWTOPLAY]; PREFSMAN->m_bHowToPlay = !!m_iSelectedOption[0][AO_HOWTOPLAY];
PREFSMAN->m_bShowDontDie = !!m_iSelectedOption[0][AO_CAUTION];
PREFSMAN->SaveGamePrefsToDisk(); PREFSMAN->SaveGamePrefsToDisk();
PREFSMAN->SaveGlobalPrefsToDisk(); PREFSMAN->SaveGlobalPrefsToDisk();
+6
View File
@@ -32,6 +32,12 @@ ScreenCaution::ScreenCaution()
{ {
GAMESTATE->m_bPlayersCanJoin = true; GAMESTATE->m_bPlayersCanJoin = true;
if(!PREFSMAN->m_bShowDontDie)
{
this->SendScreenMessage( SM_GoToNextScreen, 0.f );
return;
}
m_Background.LoadFromAniDir( THEME->GetPathTo("BGAnimations","caution") ); m_Background.LoadFromAniDir( THEME->GetPathTo("BGAnimations","caution") );
this->AddChild( &m_Background ); this->AddChild( &m_Background );