Toggle between duet-part with F10 after selecting player with [1...6]

This commit is contained in:
Florian Kuepper committed 2012-08-11 15:20:21 +02:00
1 parent 5abd428462
commit adb8ee7478
1 file changed
+16
+16
View File
@@ -335,6 +335,22 @@ namespace Vocaluxe.Screens
//Update Tiles-List
NameSelections[htNameSelections(NameSelection)].UpdateList();
break;
case Keys.F10:
if (CGame.GetNumSongs() == 1 && CGame.GetSong(1).IsDuet)
{
if (SelectSlides[htSelectSlides(SelectSlideDuetPlayer[selectingKeyboardPlayerNr - 1])].Selection == 0)
SelectSlides[htSelectSlides(SelectSlideDuetPlayer[selectingKeyboardPlayerNr - 1])].SetSelectionByValueIndex(1);
else
SelectSlides[htSelectSlides(SelectSlideDuetPlayer[selectingKeyboardPlayerNr - 1])].SetSelectionByValueIndex(0);
//Reset all values
selectingKeyboardPlayerNr = 0;
selectingKeyboardActive = false;
selectingKeyboardUnendless = false;
NameSelections[htNameSelections(NameSelection)].KeyboardSelection(false, -1);
SetInteractionToButton(Buttons[htButtons(ButtonStart)]);
}
break;
}
}