add an option to disable song sections

This commit is contained in:
Glenn Maynard
2002-12-30 21:42:14 +00:00
parent 42b8e27f69
commit 76af3c3436
5 changed files with 13 additions and 2 deletions
+2
View File
@@ -498,6 +498,8 @@ void MusicWheel::BuildWheelItemDatas( CArray<WheelItemData, WheelItemData&> &arr
if( bRoulette )
bUseSections = false;
if( !PREFSMAN->m_bMusicWheelUsesSections )
bUseSections = false;
if( bUseSections )
{
+4 -1
View File
@@ -65,7 +65,8 @@ PrefsManager::PrefsManager()
m_bArcadeOptionsNavigation = false;
m_iUnloadTextureDelaySeconds = 0; // disabled 60*30; // 30 mins
m_bCoinOpMode = false;
m_bMusicWheelUsesSections = 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;
@@ -120,6 +121,7 @@ PrefsManager::~PrefsManager()
ini.GetValue ( "Options", "DWIPath", m_DWIPath );
ini.GetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
ini.GetValueB( "Options", "CoinOpMode", m_bCoinOpMode );
ini.GetValueB( "Options", "MusicWheelUsesSections", m_bMusicWheelUsesSections );
ini.GetValue ( "Options", "SoundDrivers", m_bSoundDrivers );
m_asAdditionalSongFolders.clear();
@@ -173,6 +175,7 @@ void PrefsManager::SaveGlobalPrefsToDisk()
ini.SetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation );
ini.SetValue ( "Options", "DWIPath", m_DWIPath );
ini.SetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
ini.SetValueB( "Options", "MusicWheelUsesSections", m_bMusicWheelUsesSections );
ini.SetValueB( "Options", "CoinOpMode", m_bCoinOpMode );
/* Only write this if it's been changed. This ensures that we can change
+2 -1
View File
@@ -52,7 +52,8 @@ public:
bool m_bHowToPlay, m_bShowDontDie, m_bShowSelectGroup;
bool m_bArcadeOptionsNavigation;
bool m_bCoinOpMode;
bool m_bMusicWheelUsesSections;
CStringArray m_asAdditionalSongFolders;
CString m_DWIPath;
@@ -33,6 +33,7 @@ enum {
AO_HOWTOPLAY,
AO_CAUTION,
AO_SELECT_GROUP,
AO_WHEEL_SECTIONS,
NUM_APPEARANCE_OPTIONS_LINES
};
@@ -43,6 +44,7 @@ OptionRowData g_AppearanceOptionsLines[NUM_APPEARANCE_OPTIONS_LINES] = {
{ "How To\nPlay", 2, {"SKIP","SHOW"} },
{ "Caution", 2, {"SKIP","SHOW"} },
{ "Song\nGroup", 2, {"ALL MUSIC","CHOOSE"} },
{ "Wheel\nSections",2, {"NO","YES"} },
};
ScreenAppearanceOptions::ScreenAppearanceOptions() :
@@ -155,6 +157,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;
m_iSelectedOption[0][AO_WHEEL_SECTIONS] = PREFSMAN->m_bMusicWheelUsesSections? 1:0;
}
void ScreenAppearanceOptions::ExportOptions()
@@ -179,6 +182,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->m_bMusicWheelUsesSections = !!m_iSelectedOption[0][AO_WHEEL_SECTIONS];
PREFSMAN->SaveGamePrefsToDisk();
PREFSMAN->SaveGlobalPrefsToDisk();