diff --git a/stepmania/Themes/default/metrics.ini b/stepmania/Themes/default/metrics.ini index a8c4ce0f6b..2ad6833720 100644 --- a/stepmania/Themes/default/metrics.ini +++ b/stepmania/Themes/default/metrics.ini @@ -284,6 +284,7 @@ NextScreen8=ScreenInstructions LockInputSeconds=0.8 SleepAfterChoiceSeconds=0.3 SleepAfterTweenOffSeconds=0.8 +IgnoredElementOnCommand=diffuse,0.4,0.4,0.4,1 MorePage1X=580 MorePage1Y=90 MorePage1OnCommand=diffusealpha,0;linear,0.5;diffusealpha,1 diff --git a/stepmania/src/ScreenSelectDifficulty.cpp b/stepmania/src/ScreenSelectDifficulty.cpp index 47557e3821..5a8d2a7046 100644 --- a/stepmania/src/ScreenSelectDifficulty.cpp +++ b/stepmania/src/ScreenSelectDifficulty.cpp @@ -34,6 +34,7 @@ #define OK_CHOOSE_COMMAND THEME->GetMetric (m_sName,"OKChooseCommand") #define DISABLED_COLOR THEME->GetMetricC(m_sName,"DisabledColor") +#define IGNORED_ELEMENT_COMMAND THEME->GetMetric (m_sName,"IgnoredElementOnCommand") ScreenSelectDifficulty::ScreenSelectDifficulty( CString sClassName ) : ScreenSelect( sClassName ) { @@ -195,6 +196,16 @@ void ScreenSelectDifficulty::MenuLeft( PlayerNumber pn ) if( m_bChosen[pn] ) return; + unsigned c; // GCC is bitching again. + for( c=0; c=0; i-- ) { @@ -211,7 +222,6 @@ void ScreenSelectDifficulty::MenuLeft( PlayerNumber pn ) ChangePage( (Page)(m_CurrentPage-1) ); return; } - ChangeWithinPage( pn, iSwitchToIndex, false ); } @@ -223,6 +233,16 @@ void ScreenSelectDifficulty::MenuRight( PlayerNumber pn ) if( m_bChosen[pn] ) return; + unsigned c; // GCC is bitching again. + for( c=0; c m_ModeChoices[NUM_PAGES]; + vector m_iaChoicesToIgnore; + Page m_CurrentPage; int m_iChoiceOnPage[NUM_PLAYERS]; bool m_bChosen[NUM_PLAYERS];