add an option to not display the select group screen

This commit is contained in:
Glenn Maynard
2002-12-15 10:25:20 +00:00
parent ab179acc1a
commit 3e6b2eba89
5 changed files with 24 additions and 8 deletions
+1
View File
@@ -726,6 +726,7 @@ Theme=Choose from this list of installed theme packs.::For more information abou
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.
Caution=Toggle whether the Caution screen is shown.
SongGroup=Toggle whether the Select Group screen is shown.
[ScreenNetworkWaiting]
ServerInfoX=320
+3
View File
@@ -61,6 +61,7 @@ PrefsManager::PrefsManager()
m_bDelayedEscape = true;
m_bHowToPlay = true;
m_bShowDontDie = true;
m_bShowSelectGroup = true;
m_bArcadeOptionsNavigation = false;
m_iUnloadTextureDelaySeconds = 0; // disabled 60*30; // 30 mins
m_bCoinOpMode = false;
@@ -114,6 +115,7 @@ PrefsManager::~PrefsManager()
ini.GetValueB( "Options", "Vsync", m_bVsync );
ini.GetValueB( "Options", "HowToPlay", m_bHowToPlay );
ini.GetValueB( "Options", "Caution", m_bShowDontDie );
ini.GetValueB( "Options", "SelectGroup", m_bShowSelectGroup );
ini.GetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation );
ini.GetValue ( "Options", "DWIPath", m_DWIPath );
ini.GetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
@@ -167,6 +169,7 @@ void PrefsManager::SaveGlobalPrefsToDisk()
ini.SetValueB( "Options", "Vsync", m_bVsync );
ini.SetValueB( "Options", "HowToPlay", m_bHowToPlay );
ini.SetValueB( "Options", "Caution", m_bShowDontDie );
ini.SetValueB( "Options", "SelectGroup", m_bShowSelectGroup );
ini.SetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation );
ini.SetValue ( "Options", "DWIPath", m_DWIPath );
ini.SetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
+1 -1
View File
@@ -49,7 +49,7 @@ public:
float m_fJudgeWindowGoodPercent;
bool m_bAutoPlay;
bool m_bDelayedEscape;
bool m_bHowToPlay, m_bShowDontDie;
bool m_bHowToPlay, m_bShowDontDie, m_bShowSelectGroup;
bool m_bArcadeOptionsNavigation;
bool m_bCoinOpMode;
@@ -32,6 +32,7 @@ enum {
AO_SKIN,
AO_HOWTOPLAY,
AO_CAUTION,
AO_SELECT_GROUP,
NUM_APPEARANCE_OPTIONS_LINES
};
@@ -41,6 +42,7 @@ OptionRowData g_AppearanceOptionsLines[NUM_APPEARANCE_OPTIONS_LINES] = {
{ "Note\nSkin", 0, {""} }, // fill this in on ImportOptions()
{ "How To\nPlay", 2, {"SKIP","SHOW"} },
{ "Caution", 2, {"SKIP","SHOW"} },
{ "Song\nGroup", 2, {"ALL MUSIC","CHOOSE"} },
};
ScreenAppearanceOptions::ScreenAppearanceOptions() :
@@ -152,6 +154,7 @@ void ScreenAppearanceOptions::ImportOptions()
m_iSelectedOption[0][AO_HOWTOPLAY] = PREFSMAN->m_bHowToPlay? 1:0;
m_iSelectedOption[0][AO_CAUTION] = PREFSMAN->m_bShowDontDie? 1:0;
m_iSelectedOption[0][AO_SELECT_GROUP] = PREFSMAN->m_bShowSelectGroup? 1:0;
}
void ScreenAppearanceOptions::ExportOptions()
@@ -175,6 +178,7 @@ void ScreenAppearanceOptions::ExportOptions()
PREFSMAN->m_bHowToPlay = !!m_iSelectedOption[0][AO_HOWTOPLAY];
PREFSMAN->m_bShowDontDie = !!m_iSelectedOption[0][AO_CAUTION];
PREFSMAN->m_bShowSelectGroup = !!m_iSelectedOption[0][AO_SELECT_GROUP];
PREFSMAN->SaveGamePrefsToDisk();
PREFSMAN->SaveGlobalPrefsToDisk();
+15 -7
View File
@@ -52,6 +52,21 @@ ScreenSelectGroup::ScreenSelectGroup()
LOG->Trace( "ScreenSelectGroup::ScreenSelectGroup()" );
m_Menu.Load(
THEME->GetPathTo("BGAnimations","select group") ,
THEME->GetPathTo("Graphics","select group top edge"),
HELP_TEXT, true, true, TIMER_SECONDS
);
this->AddChild( &m_Menu );
if(!PREFSMAN->m_bShowSelectGroup)
{
GAMESTATE->m_sPreferredGroup = "ALL MUSIC";
m_Menu.ImmedOffScreenToMenu();
this->SendScreenMessage( SM_GoToNextScreen, 0.f );
return;
}
unsigned i;
int j;
@@ -116,13 +131,6 @@ ScreenSelectGroup::ScreenSelectGroup()
m_bChosen = false;
m_Menu.Load(
THEME->GetPathTo("BGAnimations","select group") ,
THEME->GetPathTo("Graphics","select group top edge"),
HELP_TEXT, true, true, TIMER_SECONDS
);
this->AddChild( &m_Menu );
m_sprExplanation.Load( THEME->GetPathTo("Graphics","select group explanation") );
m_sprExplanation.SetXY( EXPLANATION_X, EXPLANATION_Y );
this->AddChild( &m_sprExplanation );