changed challenge party mode song selection (there are still some bugs)

This commit is contained in:
Alexander Eckart committed 2012-12-23 12:36:50 +01:00
1 parent e843569b3e
commit ee69919366
9 files changed
+220 -81

No files matched your search

+8
View File
@@ -67,6 +67,14 @@ namespace Vocaluxe.PartyModes
return new ScreenSongOptions();
}
public virtual void OnSongChange(int SongIndex, ref ScreenSongOptions ScreenSongOptions)
{
}
public virtual void OnCategoryChange(int CategoryIndex, ref ScreenSongOptions ScreenSongOptions)
{
}
public virtual int GetMaxPlayer()
{
return 6;
+1
View File
@@ -16,6 +16,7 @@ namespace Vocaluxe.PartyModes
_ScreenSongOptions.Selection.CategoryChangeAllowed = true;
_ScreenSongOptions.Selection.NumJokers = null;
_ScreenSongOptions.Selection.TeamNames = null;
_ScreenSongOptions.Selection.SongIndex = -1;
_ScreenSongOptions.Sorting.SearchString = String.Empty;
_ScreenSongOptions.Sorting.SearchStringVisible = false;
+13
View File
@@ -28,6 +28,16 @@ namespace Vocaluxe.PartyModes
/// </summary>
public struct SelectionOptions
{
/// <summary>
/// If != -1, the SongMenu should set the song selection on the provided song index (visible index) if possible
/// </summary>
public int SongIndex;
/// <summary>
/// If true, the SongMenu should perform the select random song method
/// </summary>
public bool SelectNextRandomSong;
/// <summary>
/// Choosing song only by random
/// </summary>
@@ -69,6 +79,9 @@ namespace Vocaluxe.PartyModes
EScreens GetMainScreen();
ScreenSongOptions GetScreenSongOptions();
void OnSongChange(int SongIndex, ref ScreenSongOptions ScreenSongOptions);
void OnCategoryChange(int CategoryIndex, ref ScreenSongOptions ScreenSongOptions);
int GetMaxPlayer();
int GetMinPlayer();
int GetMaxTeams();