Resolve issue 76: add a new metric.

One can now define whether Ctrl+Up expands the selection
or shrinks it, and vice~versa with Ctrl+Down.
This commit is contained in:
Jason Felds
2011-03-17 14:41:26 -04:00
parent c1d077888e
commit 77e1b87cdd
3 changed files with 8 additions and 2 deletions
+3
View File
@@ -19,6 +19,9 @@ sm-ssc v1.2.4 | 20110???
saved. [AJ, Wolfman2000]
* [ScreenOptionsEdit] Fix bug number 186, where people could try to edit or
share songs when they didn't have any. [Wolfman2000]
* [ScreenEdit] Add a metric to switch Ctrl+Up and Ctrl+Down. This is for
easier compatibility with prior versions of SM. It defaults to false.
[Wolfman2000]
20110316
--------
+1
View File
@@ -3628,6 +3628,7 @@ ShowHelp=false
AllowOperatorMenuButton=false
ShowCreditDisplay=false
ShowStyleIcon=false
InvertScrollSpeedButtons=false
TimerSeconds=-1
EditModifiers="no reverse"
EditHelpX=SCREEN_LEFT+4
+4 -2
View File
@@ -1243,6 +1243,8 @@ static int FindAttackAtTime( const AttackArray& attacks, float fStartTime )
static LocalizedString SWITCHED_TO ( "ScreenEdit", "Switched to" );
static LocalizedString NO_BACKGROUNDS_AVAILABLE ( "ScreenEdit", "No backgrounds available" );
static ThemeMetric<bool> INVERT_SCROLL_BUTTONS ( "ScreenEdit", "InvertScrollSpeedButtons" );
void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB )
{
if( input.type == IET_RELEASE )
@@ -1364,10 +1366,10 @@ void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB )
{
DEFAULT_FAIL(EditB);
case EDIT_BUTTON_SCROLL_SPEED_DOWN:
--iSpeed;
INVERT_SCROLL_BUTTONS ? ++iSpeed : --iSpeed;
break;
case EDIT_BUTTON_SCROLL_SPEED_UP:
++iSpeed;
INVERT_SCROLL_BUTTONS ? --iSpeed : ++iSpeed;
break;
}
iSpeed = clamp( iSpeed, 0, (int) ARRAYLEN(fSpeeds)-1 );