Return to old max-mic-number.

This commit is contained in:
Florian Kuepper committed 2012-12-16 20:02:55 +01:00
1 parent bcbda3aa9e
commit 2cf45ac25a
1 file changed
+3 -1
@@ -18,7 +18,7 @@ namespace Vocaluxe.PartyModes
const string ButtonNext = "ButtonNext"; const string ButtonNext = "ButtonNext";
const string ButtonBack = "ButtonBack"; const string ButtonBack = "ButtonBack";
private int MaxNumMics = 4; private int MaxNumMics = 2;
private int MaxNumRounds = 100; private int MaxNumRounds = 100;
DataFromScreen Data; DataFromScreen Data;
@@ -194,8 +194,10 @@ namespace Vocaluxe.PartyModes
{ {
SelectSlides[htSelectSlides(SelectSlideNumMics)].AddValue(i.ToString()); SelectSlides[htSelectSlides(SelectSlideNumMics)].AddValue(i.ToString());
} }
//Set to old selection
if (SelectSlides[htSelectSlides(SelectSlideNumMics)].NumValues >= Data.ScreenConfig.NumPlayerAtOnce) if (SelectSlides[htSelectSlides(SelectSlideNumMics)].NumValues >= Data.ScreenConfig.NumPlayerAtOnce)
SelectSlides[htSelectSlides(SelectSlideNumMics)].Selection = Data.ScreenConfig.NumPlayerAtOnce - 1; SelectSlides[htSelectSlides(SelectSlideNumMics)].Selection = Data.ScreenConfig.NumPlayerAtOnce - 1;
//Update selection, if old selection = max player num
if (OldValueNumPlayer == Data.ScreenConfig.NumPlayerAtOnce) if (OldValueNumPlayer == Data.ScreenConfig.NumPlayerAtOnce)
SelectSlides[htSelectSlides(SelectSlideNumMics)].Selection = SelectSlides[htSelectSlides(SelectSlideNumMics)].NumValues - 1; SelectSlides[htSelectSlides(SelectSlideNumMics)].Selection = SelectSlides[htSelectSlides(SelectSlideNumMics)].NumValues - 1;
} }