add WRAP_VALUE_IN_ROW

This commit is contained in:
Chris Danford
2005-08-03 03:22:58 +00:00
parent d71e765380
commit 7f67cfcac0
2 changed files with 7 additions and 2 deletions
+6 -2
View File
@@ -92,7 +92,8 @@ ScreenOptions::ScreenOptions( CString sClassName ) : ScreenWithMenuElements(sCla
SEPARATE_EXIT_ROW_Y (m_sName,"SeparateExitRowY"),
SHOW_EXPLANATIONS (m_sName,"ShowExplanations"),
ALLOW_REPEATING_CHANGE_VALUE_INPUT(m_sName,"AllowRepeatingChangeValueInput"),
CURSOR_TWEEN_SECONDS (m_sName,"CursorTweenSeconds")
CURSOR_TWEEN_SECONDS (m_sName,"CursorTweenSeconds"),
WRAP_VALUE_IN_ROW (m_sName,"WrapValueInRow")
{
m_fLockInputSecs = 0.0001f; // always lock for a tiny amount of time so that we throw away any queued inputs during the load.
@@ -998,7 +999,10 @@ void ScreenOptions::ChangeValueInRowRelative( int iRow, PlayerNumber pn, int iDe
int iCurrentChoiceWithFocus = row.GetChoiceInRowWithFocus(pn);
int iNewChoiceWithFocus = iCurrentChoiceWithFocus + iDelta;
wrap( iNewChoiceWithFocus, iNumChoices );
if( !bRepeat && WRAP_VALUE_IN_ROW.GetValue() )
wrap( iNewChoiceWithFocus, iNumChoices );
else
CLAMP( iNewChoiceWithFocus, 0, iNumChoices-1 );
if( iCurrentChoiceWithFocus != iNewChoiceWithFocus )
bOneChanged = true;
+1
View File
@@ -155,6 +155,7 @@ protected:
ThemeMetric<bool> SHOW_EXPLANATIONS;
ThemeMetric<bool> ALLOW_REPEATING_CHANGE_VALUE_INPUT;
ThemeMetric<float> CURSOR_TWEEN_SECONDS;
ThemeMetric<bool> WRAP_VALUE_IN_ROW;
float m_fLockInputSecs;
};