add pref for showing autoplay status

This commit is contained in:
Chris Danford
2006-07-08 09:05:44 +00:00
parent 9899308409
commit 1a902b3abd
3 changed files with 3 additions and 3 deletions
-1
View File
@@ -231,7 +231,6 @@ PrefsManager::PrefsManager() :
m_fTimeMeterSecondsChange ( TimeMeterSecondsChangeInit, NUM_ScoreEvent ),
m_AutoPlay ( "AutoPlay", PC_HUMAN ),
m_bShowAutoPlayStatus ( "ShowAutoPlayStatus", true ),
m_bDelayedBack ( "DelayedBack", true ),
m_bShowInstructions ( "ShowInstructions", true ),
m_bShowSelectGroup ( "ShowSelectGroup", false ),
-1
View File
@@ -110,7 +110,6 @@ public:
Preference1D<float> m_fTimeMeterSecondsChange;
Preference<PlayerController,int> m_AutoPlay;
Preference<bool> m_bShowAutoPlayStatus;
Preference<bool> m_bDelayedBack;
Preference<bool> m_bShowInstructions;
Preference<bool> m_bShowSelectGroup;
+3 -1
View File
@@ -77,6 +77,8 @@ void ScreenSyncOverlay::Update( float fDeltaTime )
UpdateText();
}
static Preference<bool> g_bShowAutoPlayStatus( "ShowAutoPlayStatus", true );
static LocalizedString AUTO_PLAY ( "ScreenSyncOverlay", "AutoPlay" );
static LocalizedString AUTO_PLAY_CPU ( "ScreenSyncOverlay", "AutoPlayCPU" );
static LocalizedString AUTO_SYNC_SONG ( "ScreenSyncOverlay", "AutoSync Song" );
@@ -85,7 +87,7 @@ void ScreenSyncOverlay::UpdateText()
{
vector<RString> vs;
if( PREFSMAN->m_bShowAutoPlayStatus )
if( g_bShowAutoPlayStatus )
{
switch( PREFSMAN->m_AutoPlay )
{