Merge pull request #505 from Vocaluxe/10-SecondSkip
Add Shift+Right Arrow for skipping 10 seconds
This commit is contained in:
2 files changed
+6
-5
No files matched your search
@@ -157,6 +157,7 @@ Name selection screen
|
||||
Sing screen
|
||||
[P] to toggle pause.
|
||||
[CTRL] + [S] to skip a song if there is another one in the playlist.
|
||||
[SHIFT] + [RIGHT] to skip 10 seconds within the playing song (not in party modes).
|
||||
[CTRL] + [RIGHT] to skip 30 seconds within the playing song (not in party modes).
|
||||
[T] to change the time format of the timer.
|
||||
[I] to change view of player information.
|
||||
|
||||
@@ -346,19 +346,19 @@ namespace Vocaluxe.Screens
|
||||
}
|
||||
break;
|
||||
|
||||
// Skip 30 seconds
|
||||
// Skip 10/30 seconds
|
||||
case Keys.Right:
|
||||
if (keyEvent.Mod == EModifier.Ctrl && !_Pause && !_Sso.Selection.PartyMode)
|
||||
if ((keyEvent.Mod == EModifier.Shift || keyEvent.Mod == EModifier.Ctrl) && !_Pause && !_Sso.Selection.PartyMode)
|
||||
{
|
||||
if (_TimerSongText.IsRunning)
|
||||
_TimerSongText.Stop();
|
||||
|
||||
float newTime = _CurrentTime + 30f;
|
||||
if (CSound.GetLength(_CurrentStream) < (_CurrentTime + 30f))
|
||||
float newTime = _CurrentTime + (keyEvent.Mod == EModifier.Shift ? 10f : 30f);
|
||||
if (CSound.GetLength(_CurrentStream) < newTime)
|
||||
newTime = CSound.GetLength(_CurrentStream) - 1f;
|
||||
CSound.SetPosition(_CurrentStream, newTime);
|
||||
|
||||
_ShowInfoText(CBase.Language.Translate("TR_SCREENSING_SKIPPEDSECONDS").Replace("%s", "30"));
|
||||
_ShowInfoText(CBase.Language.Translate("TR_SCREENSING_SKIPPEDSECONDS").Replace("%s", (keyEvent.Mod == EModifier.Shift ? "10" : "30")));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user