Merge branch 'develop' of github.com:Vocaluxe/Vocaluxe into develop
This commit is contained in:
commit
8ff5d5133a
5 files changed
+31
-8
No files matched your search
@@ -77,8 +77,13 @@ namespace Vocaluxe.PartyModes
|
||||
|
||||
for (int i = 0; i < NumPlayed.Count; i++)
|
||||
{
|
||||
if (NumPlayed[i] == 0 || NumPlayed[i] < max)
|
||||
result.Add(i);
|
||||
if (RoundIndex == 0 || NumPlayed[i] < max)
|
||||
{
|
||||
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
|
||||
{
|
||||
if (RoundIndex > 0)
|
||||
@@ -110,6 +115,12 @@ namespace Vocaluxe.PartyModes
|
||||
last.RemoveAt(r);
|
||||
}
|
||||
|
||||
while (result.Count > num)
|
||||
{
|
||||
int n = result.Count;
|
||||
int r = _Rand.Next(n);
|
||||
result.RemoveAt(r);
|
||||
}
|
||||
|
||||
result.Sort();
|
||||
return result;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Vocaluxe.Base
|
||||
public bool ShowCursor;
|
||||
public bool Visible = true;
|
||||
public bool CursorVisible = true;
|
||||
|
||||
|
||||
public int X
|
||||
{
|
||||
get { return (int)_Cursor.rect.X; }
|
||||
@@ -177,6 +177,7 @@ namespace Vocaluxe.Base
|
||||
private static List<IMenu> _PopupScreens = new List<IMenu>();
|
||||
|
||||
private static Stopwatch _VolumePopupTimer;
|
||||
private static bool CursorOverVolumeControl = false;
|
||||
|
||||
public static float GlobalAlpha
|
||||
{
|
||||
@@ -630,7 +631,7 @@ namespace Vocaluxe.Base
|
||||
if (_CurrentPopupScreen == EPopupScreens.NoPopup && CConfig.BackgroundMusic == EOffOn.TR_CONFIG_ON)
|
||||
ShowPopup(EPopupScreens.PopupPlayerControl);
|
||||
}
|
||||
|
||||
|
||||
if (!isOverPopupPlayerControl && _CurrentPopupScreen == EPopupScreens.PopupPlayerControl)
|
||||
HidePopup(EPopupScreens.PopupPlayerControl);
|
||||
|
||||
@@ -645,6 +646,17 @@ namespace Vocaluxe.Base
|
||||
}
|
||||
}
|
||||
|
||||
if (CursorOverVolumeControl && !isOverPopupVolumeControl)
|
||||
{
|
||||
if (_CurrentPopupScreen == EPopupScreens.PopupVolumeControl)
|
||||
{
|
||||
HidePopup(EPopupScreens.PopupVolumeControl);
|
||||
_VolumePopupTimer.Reset();
|
||||
}
|
||||
}
|
||||
CursorOverVolumeControl = isOverPopupVolumeControl;
|
||||
|
||||
|
||||
bool handled = false;
|
||||
if (_CurrentPopupScreen != EPopupScreens.NoPopup)
|
||||
handled = _PopupScreens[(int)_CurrentPopupScreen].HandleMouse(MouseEvent);
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace Vocaluxe.Screens
|
||||
Buttons[htButtons(ButtonToBackgroundVideo)].Pressed = VideoBackground;
|
||||
Buttons[htButtons(ButtonShowVideo)].Pressed = _VideoPreview;
|
||||
Buttons[htButtons(ButtonRepeat)].Pressed = CBackgroundMusic.RepeatSong;
|
||||
Buttons[htButtons(ButtonSing)].Visible = CBackgroundMusic.CanSing;
|
||||
Buttons[htButtons(ButtonSing)].Visible = CBackgroundMusic.CanSing && CParty.CurrentPartyModeID == -1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ namespace Vocaluxe.Screens
|
||||
Buttons[htButtons(ButtonPause)].Visible = CBackgroundMusic.Playing;
|
||||
Buttons[htButtons(ButtonPlay)].Visible = !CBackgroundMusic.Playing;
|
||||
Texts[htTexts(TextCurrentSong)].Text = CBackgroundMusic.ArtistAndTitle;
|
||||
|
||||
|
||||
return base.Draw();
|
||||
}
|
||||
|
||||
|
||||
@@ -1771,7 +1771,7 @@ namespace Vocaluxe.Menu
|
||||
|
||||
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];
|
||||
element = elements[i];
|
||||
|
||||
@@ -669,7 +669,7 @@ namespace Vocaluxe.Menu
|
||||
|
||||
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];
|
||||
element = elements[i];
|
||||
|
||||
Reference in new issue
Block a user