add ScreenOption AllowRepeatingChangeValueInput
This commit is contained in:
@@ -2499,6 +2499,7 @@ ShowExplanations=1
|
|||||||
ThemeTitles=1
|
ThemeTitles=1
|
||||||
ThemeItems=1
|
ThemeItems=1
|
||||||
IconsOnCommand=x,-30;y,-30
|
IconsOnCommand=x,-30;y,-30
|
||||||
|
AllowRepeatingChangeValueInput=0
|
||||||
|
|
||||||
IconsP1X=SCREEN_CENTER_X-280
|
IconsP1X=SCREEN_CENTER_X-280
|
||||||
IconsP2X=SCREEN_CENTER_X+280
|
IconsP2X=SCREEN_CENTER_X+280
|
||||||
|
|||||||
@@ -94,7 +94,8 @@ ScreenOptions::ScreenOptions( CString sClassName ) : ScreenWithMenuElements(sCla
|
|||||||
SHOW_EXIT_ROW (m_sName,"ShowExitRow"),
|
SHOW_EXIT_ROW (m_sName,"ShowExitRow"),
|
||||||
SEPARATE_EXIT_ROW (m_sName,"SeparateExitRow"),
|
SEPARATE_EXIT_ROW (m_sName,"SeparateExitRow"),
|
||||||
SEPARATE_EXIT_ROW_Y (m_sName,"SeparateExitRowY"),
|
SEPARATE_EXIT_ROW_Y (m_sName,"SeparateExitRowY"),
|
||||||
SHOW_EXPLANATIONS (m_sName,"ShowExplanations")
|
SHOW_EXPLANATIONS (m_sName,"ShowExplanations"),
|
||||||
|
ALLOW_REPEATING_CHANGE_VALUE_INPUT(m_sName,"AllowRepeatingChangeValueInput")
|
||||||
{
|
{
|
||||||
m_fLockInputSecs = 0.0001f; // always lock for a tiny amount of time so that we throw away any queued inputs during the load.
|
m_fLockInputSecs = 0.0001f; // always lock for a tiny amount of time so that we throw away any queued inputs during the load.
|
||||||
|
|
||||||
@@ -926,7 +927,7 @@ void ScreenOptions::ChangeValueInRow( PlayerNumber pn, int iDelta, bool Repeat )
|
|||||||
if( iNumChoices == 0 )
|
if( iNumChoices == 0 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( Repeat )
|
if( Repeat && !ALLOW_REPEATING_CHANGE_VALUE_INPUT )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool bOneChanged = false;
|
bool bOneChanged = false;
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ protected:
|
|||||||
ThemeMetric<bool> SEPARATE_EXIT_ROW;
|
ThemeMetric<bool> SEPARATE_EXIT_ROW;
|
||||||
ThemeMetric<float> SEPARATE_EXIT_ROW_Y;
|
ThemeMetric<float> SEPARATE_EXIT_ROW_Y;
|
||||||
ThemeMetric<bool> SHOW_EXPLANATIONS;
|
ThemeMetric<bool> SHOW_EXPLANATIONS;
|
||||||
|
ThemeMetric<bool> ALLOW_REPEATING_CHANGE_VALUE_INPUT;
|
||||||
|
|
||||||
float m_fLockInputSecs;
|
float m_fLockInputSecs;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user