Split off separate DemonstrationSound pref
This commit is contained in:
@@ -2153,6 +2153,7 @@ HelpText=&UP; &DOWN; to change line &LEFT; &RIGHT; to select between options::
|
|||||||
EasterEggs=Enable or disable some special easter eggs.
|
EasterEggs=Enable or disable some special easter eggs.
|
||||||
MarvelousTiming=Enable or disable marvelous judgement. NEVER - never show Marvelous,::COURSES ONLY - only during nonstop/oni modes, ALWAYS - all modes of play
|
MarvelousTiming=Enable or disable marvelous judgement. NEVER - never show Marvelous,::COURSES ONLY - only during nonstop/oni modes, ALWAYS - all modes of play
|
||||||
HiddenSongs=Some songs are only playable during Oni courses and::with roulette. Leave this &oq;OFF&cq; to always display all songs.
|
HiddenSongs=Some songs are only playable during Oni courses and::with roulette. Leave this &oq;OFF&cq; to always display all songs.
|
||||||
|
AllowExtraStage=
|
||||||
PickExtraStage=Instead of a set extra stage, this allows::the player to choose which song to play.::Difficulty and options are still locked.
|
PickExtraStage=Instead of a set extra stage, this allows::the player to choose which song to play.::Difficulty and options are still locked.
|
||||||
SoloSingles=Turn this option &oq;ON&cq; to enable Solo-Style::for 4-panel single play.
|
SoloSingles=Turn this option &oq;ON&cq; to enable Solo-Style::for 4-panel single play.
|
||||||
UnlockSystem=Enable or disable unlock system.
|
UnlockSystem=Enable or disable unlock system.
|
||||||
@@ -2161,13 +2162,14 @@ TimerSeconds=0
|
|||||||
PrevScreen=ScreenOptionsMenu@ScreenOptionsMaster
|
PrevScreen=ScreenOptionsMenu@ScreenOptionsMaster
|
||||||
NextScreen=ScreenOptionsMenu@ScreenOptionsMaster
|
NextScreen=ScreenOptionsMenu@ScreenOptionsMaster
|
||||||
|
|
||||||
OptionMenuFlags=rows,6;together;explanations
|
OptionMenuFlags=rows,7;together;explanations
|
||||||
Line1=conf,SoloSingles
|
Line1=conf,SoloSingles
|
||||||
Line2=conf,HiddenSongs
|
Line2=conf,HiddenSongs
|
||||||
Line3=conf,EasterEggs
|
Line3=conf,EasterEggs
|
||||||
Line4=conf,MarvelousTiming
|
Line4=conf,MarvelousTiming
|
||||||
Line5=conf,PickExtraStage
|
Line5=conf,AllowExtraStage
|
||||||
Line6=conf,UnlockSystem
|
Line6=conf,PickExtraStage
|
||||||
|
Line7=conf,UnlockSystem
|
||||||
|
|
||||||
[ScreenBackgroundOptions]
|
[ScreenBackgroundOptions]
|
||||||
HelpText=&UP; &DOWN; to change line &LEFT; &RIGHT; to select between options::START to accept changes BACK to discard changes
|
HelpText=&UP; &DOWN; to change line &LEFT; &RIGHT; to select between options::START to accept changes BACK to discard changes
|
||||||
@@ -2512,6 +2514,7 @@ MasterVolume=
|
|||||||
PreloadSounds=If YES, preload most sounds in advance. This increases load times,::and should normally be left OFF.
|
PreloadSounds=If YES, preload most sounds in advance. This increases load times,::and should normally be left OFF.
|
||||||
ResamplingQuality=Advanced: Select the resampling quality to use.
|
ResamplingQuality=Advanced: Select the resampling quality to use.
|
||||||
AttractSound=Set to ON to play sound during the attract screens.::Set to OFF to mute sounds durring attract.
|
AttractSound=Set to ON to play sound during the attract screens.::Set to OFF to mute sounds durring attract.
|
||||||
|
DemonstrationSound=
|
||||||
SoundVolume=
|
SoundVolume=
|
||||||
StyleIcon=0
|
StyleIcon=0
|
||||||
TimerSeconds=0
|
TimerSeconds=0
|
||||||
@@ -2519,11 +2522,12 @@ TimerSeconds=0
|
|||||||
PrevScreen=ScreenOptionsMenu@ScreenOptionsMaster
|
PrevScreen=ScreenOptionsMenu@ScreenOptionsMaster
|
||||||
NextScreen=ScreenOptionsMenu@ScreenOptionsMaster
|
NextScreen=ScreenOptionsMenu@ScreenOptionsMaster
|
||||||
|
|
||||||
OptionMenuFlags=rows,4;together;explanations
|
OptionMenuFlags=rows,5;together;explanations
|
||||||
Line1=conf,PreloadSounds
|
Line1=conf,PreloadSounds
|
||||||
Line2=conf,ResamplingQuality
|
Line2=conf,ResamplingQuality
|
||||||
Line3=conf,AttractSound
|
Line3=conf,AttractSound
|
||||||
Line4=conf,SoundVolume
|
Line4=conf,DemonstrationSound
|
||||||
|
Line5=conf,SoundVolume
|
||||||
|
|
||||||
[ScreenIntroMovie]
|
[ScreenIntroMovie]
|
||||||
NextScreen=ScreenDemonstration
|
NextScreen=ScreenDemonstration
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ PrefsManager::PrefsManager()
|
|||||||
m_fCenterImageScaleY = 1;
|
m_fCenterImageScaleY = 1;
|
||||||
|
|
||||||
m_bAttractSound = true;
|
m_bAttractSound = true;
|
||||||
|
m_bDemonstrationSound = true;
|
||||||
m_bAllowExtraStage = true;
|
m_bAllowExtraStage = true;
|
||||||
g_bAutoRestart = false;
|
g_bAutoRestart = false;
|
||||||
|
|
||||||
@@ -315,6 +316,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk()
|
|||||||
ini.GetValue( "Options", "CenterImageScaleX", m_fCenterImageScaleX );
|
ini.GetValue( "Options", "CenterImageScaleX", m_fCenterImageScaleX );
|
||||||
ini.GetValue( "Options", "CenterImageScaleY", m_fCenterImageScaleY );
|
ini.GetValue( "Options", "CenterImageScaleY", m_fCenterImageScaleY );
|
||||||
ini.GetValue( "Options", "AttractSound", m_bAttractSound );
|
ini.GetValue( "Options", "AttractSound", m_bAttractSound );
|
||||||
|
ini.GetValue( "Options", "DemonstrationSound", m_bDemonstrationSound );
|
||||||
ini.GetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
|
ini.GetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
|
||||||
ini.GetValue( "Options", "AutoRestart", g_bAutoRestart );
|
ini.GetValue( "Options", "AutoRestart", g_bAutoRestart );
|
||||||
|
|
||||||
@@ -445,6 +447,7 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
|
|||||||
ini.SetValue( "Options", "CenterImageScaleX", m_fCenterImageScaleX );
|
ini.SetValue( "Options", "CenterImageScaleX", m_fCenterImageScaleX );
|
||||||
ini.SetValue( "Options", "CenterImageScaleY", m_fCenterImageScaleY );
|
ini.SetValue( "Options", "CenterImageScaleY", m_fCenterImageScaleY );
|
||||||
ini.SetValue( "Options", "AttractSound", m_bAttractSound );
|
ini.SetValue( "Options", "AttractSound", m_bAttractSound );
|
||||||
|
ini.SetValue( "Options", "DemonstrationSound", m_bDemonstrationSound );
|
||||||
ini.SetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
|
ini.SetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
|
||||||
ini.SetValue( "Options", "AutoRestart", g_bAutoRestart );
|
ini.SetValue( "Options", "AutoRestart", g_bAutoRestart );
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ public:
|
|||||||
float m_fCenterImageScaleX;
|
float m_fCenterImageScaleX;
|
||||||
float m_fCenterImageScaleY;
|
float m_fCenterImageScaleY;
|
||||||
bool m_bAttractSound;
|
bool m_bAttractSound;
|
||||||
|
bool m_bDemonstrationSound;
|
||||||
bool m_bAllowExtraStage;
|
bool m_bAllowExtraStage;
|
||||||
|
|
||||||
// course ranking
|
// course ranking
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ ScreenDemonstration::ScreenDemonstration( CString sName ) : ScreenJukebox( sName
|
|||||||
m_DancingState = STATE_DANCING;
|
m_DancingState = STATE_DANCING;
|
||||||
this->PostScreenMessage( SM_BeginFadingOut, SECONDS_TO_SHOW );
|
this->PostScreenMessage( SM_BeginFadingOut, SECONDS_TO_SHOW );
|
||||||
|
|
||||||
if( !PREFSMAN->m_bAttractSound )
|
if( !PREFSMAN->m_bDemonstrationSound )
|
||||||
SOUNDMAN->SetPrefs( 0 ); // slient
|
SOUNDMAN->SetPrefs( 0 ); // slient
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ void ScreenDemonstration::Input( const DeviceInput& DeviceI, const InputEventTyp
|
|||||||
break; // don't fall through
|
break; // don't fall through
|
||||||
|
|
||||||
m_soundMusic.Stop();
|
m_soundMusic.Stop();
|
||||||
if( !PREFSMAN->m_bAttractSound )
|
if( !PREFSMAN->m_bDemonstrationSound )
|
||||||
SOUNDMAN->SetPrefs( PREFSMAN->m_fSoundVolume ); // turn volume back on
|
SOUNDMAN->SetPrefs( PREFSMAN->m_fSoundVolume ); // turn volume back on
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -124,7 +124,7 @@ void ScreenDemonstration::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
return;
|
return;
|
||||||
case SM_GoToNextScreen:
|
case SM_GoToNextScreen:
|
||||||
m_soundMusic.Stop();
|
m_soundMusic.Stop();
|
||||||
if( !PREFSMAN->m_bAttractSound )
|
if( !PREFSMAN->m_bDemonstrationSound )
|
||||||
SOUNDMAN->SetPrefs( PREFSMAN->m_fSoundVolume ); // turn volume back on
|
SOUNDMAN->SetPrefs( PREFSMAN->m_fSoundVolume ); // turn volume back on
|
||||||
|
|
||||||
GAMESTATE->Reset();
|
GAMESTATE->Reset();
|
||||||
|
|||||||
@@ -250,6 +250,7 @@ MOVE( SoloSingles, PREFSMAN->m_bSoloSingle );
|
|||||||
MOVE( HiddenSongs, PREFSMAN->m_bHiddenSongs );
|
MOVE( HiddenSongs, PREFSMAN->m_bHiddenSongs );
|
||||||
MOVE( EasterEggs, PREFSMAN->m_bEasterEggs );
|
MOVE( EasterEggs, PREFSMAN->m_bEasterEggs );
|
||||||
MOVE( MarvelousTiming, PREFSMAN->m_iMarvelousTiming );
|
MOVE( MarvelousTiming, PREFSMAN->m_iMarvelousTiming );
|
||||||
|
MOVE( AllowExtraStage, PREFSMAN->m_bAllowExtraStage );
|
||||||
MOVE( PickExtraStage, PREFSMAN->m_bPickExtraStage );
|
MOVE( PickExtraStage, PREFSMAN->m_bPickExtraStage );
|
||||||
MOVE( UnlockSystem, PREFSMAN->m_bUseUnlockSystem );
|
MOVE( UnlockSystem, PREFSMAN->m_bUseUnlockSystem );
|
||||||
|
|
||||||
@@ -374,6 +375,7 @@ static void RefreshRate( int &sel, bool ToSel, const CStringArray &choices )
|
|||||||
MOVE( PreloadSounds, PREFSMAN->m_bSoundPreloadAll );
|
MOVE( PreloadSounds, PREFSMAN->m_bSoundPreloadAll );
|
||||||
MOVE( ResamplingQuality, PREFSMAN->m_iSoundResampleQuality );
|
MOVE( ResamplingQuality, PREFSMAN->m_iSoundResampleQuality );
|
||||||
MOVE( AttractSound, PREFSMAN->m_bAttractSound );
|
MOVE( AttractSound, PREFSMAN->m_bAttractSound );
|
||||||
|
MOVE( DemonstrationSound, PREFSMAN->m_bDemonstrationSound );
|
||||||
|
|
||||||
static void SoundVolume( int &sel, bool ToSel, const CStringArray &choices )
|
static void SoundVolume( int &sel, bool ToSel, const CStringArray &choices )
|
||||||
{
|
{
|
||||||
@@ -428,6 +430,7 @@ static const ConfOption g_ConfOptions[] =
|
|||||||
ConfOption( "Hidden\nSongs", HiddenSongs, "OFF","ON" ),
|
ConfOption( "Hidden\nSongs", HiddenSongs, "OFF","ON" ),
|
||||||
ConfOption( "Easter\nEggs", EasterEggs, "OFF","ON" ),
|
ConfOption( "Easter\nEggs", EasterEggs, "OFF","ON" ),
|
||||||
ConfOption( "Marvelous\nTiming", MarvelousTiming, "NEVER","COURSES ONLY","ALWAYS" ),
|
ConfOption( "Marvelous\nTiming", MarvelousTiming, "NEVER","COURSES ONLY","ALWAYS" ),
|
||||||
|
ConfOption( "Allow Extra\nStage", AllowExtraStage, "OFF","ON" ),
|
||||||
ConfOption( "Pick Extra\nStage", PickExtraStage, "OFF","ON" ),
|
ConfOption( "Pick Extra\nStage", PickExtraStage, "OFF","ON" ),
|
||||||
ConfOption( "Unlock\nSystem", UnlockSystem, "OFF","ON" ),
|
ConfOption( "Unlock\nSystem", UnlockSystem, "OFF","ON" ),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user