From adb8ee7478e5591b427179e28a3ab32968178705 Mon Sep 17 00:00:00 2001 From: Florian Kuepper Date: Sat, 11 Aug 2012 15:20:21 +0200 Subject: [PATCH] Toggle between duet-part with F10 after selecting player with [1...6] --- Vocaluxe/Screens/CScreenNames.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Vocaluxe/Screens/CScreenNames.cs b/Vocaluxe/Screens/CScreenNames.cs index e9f475cc..51fe1850 100644 --- a/Vocaluxe/Screens/CScreenNames.cs +++ b/Vocaluxe/Screens/CScreenNames.cs @@ -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; } }