Merge branch 'develop' of github.com:Vocaluxe/Vocaluxe into develop

This commit is contained in:
Florian Kuepper committed 2012-12-24 01:57:25 +01:00
commit 8ff5d5133a
5 files changed
+28 -5

No files matched your search

+13 -2
View File
@@ -77,8 +77,13 @@ namespace Vocaluxe.PartyModes
for (int i = 0; i < NumPlayed.Count; i++) for (int i = 0; i < NumPlayed.Count; i++)
{ {
if (NumPlayed[i] == 0 || NumPlayed[i] < max) if (RoundIndex == 0 || NumPlayed[i] < max)
result.Add(i); {
if (RoundIndex == 0 || RoundIndex > 0 && NumPlayed[i] < max && !Rounds[RoundIndex - 1].IsAvailable(i))
result.Add(i);
else if (NumPlayed[i] < max)
other.Add(i);
}
else else
{ {
if (RoundIndex > 0) if (RoundIndex > 0)
@@ -110,6 +115,12 @@ namespace Vocaluxe.PartyModes
last.RemoveAt(r); last.RemoveAt(r);
} }
while (result.Count > num)
{
int n = result.Count;
int r = _Rand.Next(n);
result.RemoveAt(r);
}
result.Sort(); result.Sort();
return result; return result;
+12
View File
@@ -177,6 +177,7 @@ namespace Vocaluxe.Base
private static List<IMenu> _PopupScreens = new List<IMenu>(); private static List<IMenu> _PopupScreens = new List<IMenu>();
private static Stopwatch _VolumePopupTimer; private static Stopwatch _VolumePopupTimer;
private static bool CursorOverVolumeControl = false;
public static float GlobalAlpha public static float GlobalAlpha
{ {
@@ -645,6 +646,17 @@ namespace Vocaluxe.Base
} }
} }
if (CursorOverVolumeControl && !isOverPopupVolumeControl)
{
if (_CurrentPopupScreen == EPopupScreens.PopupVolumeControl)
{
HidePopup(EPopupScreens.PopupVolumeControl);
_VolumePopupTimer.Reset();
}
}
CursorOverVolumeControl = isOverPopupVolumeControl;
bool handled = false; bool handled = false;
if (_CurrentPopupScreen != EPopupScreens.NoPopup) if (_CurrentPopupScreen != EPopupScreens.NoPopup)
handled = _PopupScreens[(int)_CurrentPopupScreen].HandleMouse(MouseEvent); handled = _PopupScreens[(int)_CurrentPopupScreen].HandleMouse(MouseEvent);
@@ -187,7 +187,7 @@ namespace Vocaluxe.Screens
Buttons[htButtons(ButtonToBackgroundVideo)].Pressed = VideoBackground; Buttons[htButtons(ButtonToBackgroundVideo)].Pressed = VideoBackground;
Buttons[htButtons(ButtonShowVideo)].Pressed = _VideoPreview; Buttons[htButtons(ButtonShowVideo)].Pressed = _VideoPreview;
Buttons[htButtons(ButtonRepeat)].Pressed = CBackgroundMusic.RepeatSong; Buttons[htButtons(ButtonRepeat)].Pressed = CBackgroundMusic.RepeatSong;
Buttons[htButtons(ButtonSing)].Visible = CBackgroundMusic.CanSing; Buttons[htButtons(ButtonSing)].Visible = CBackgroundMusic.CanSing && CParty.CurrentPartyModeID == -1;
return true; return true;
} }
+1 -1
View File
@@ -1771,7 +1771,7 @@ namespace Vocaluxe.Menu
for (int i = 0; i < 4; i++) for (int i = 0; i < 4; i++)
{ {
if (i != mute && elements[i] != _Selection && (stages[i] < stage || (stages[i] == stage && Directions[i].Key == Key.Key))) if (i != mute && elements[i] != _Selection && (stages[i] <= stage && Directions[i].Key == Key.Key))
{ {
stage = stages[i]; stage = stages[i];
element = elements[i]; element = elements[i];
+1 -1
View File
@@ -669,7 +669,7 @@ namespace Vocaluxe.Menu
for (int i = 0; i < 4; i++) for (int i = 0; i < 4; i++)
{ {
if (i != mute && elements[i] != _Selection && (stages[i] < stage || (stages[i] == stage && Directions[i].Key == Key.Key))) if (i != mute && elements[i] != _Selection && (stages[i] <= stage && Directions[i].Key == Key.Key))
{ {
stage = stages[i]; stage = stages[i];
element = elements[i]; element = elements[i];