71 lines
1.9 KiB
C#
71 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
using Vocaluxe.Menu;
|
|
|
|
namespace Vocaluxe.PartyModes
|
|
{
|
|
public class PartyModeChallenge : CPartyMode
|
|
{
|
|
private const int MaxPlayer = 10;
|
|
private const int MinPlayer = 2;
|
|
private const int MaxTeams = 0;
|
|
private const int MinTeams = 0;
|
|
|
|
|
|
public PartyModeChallenge()
|
|
{
|
|
_ScreenSongOptions.Selection.RandomOnly = false;
|
|
_ScreenSongOptions.Selection.PartyMode = false;
|
|
_ScreenSongOptions.Selection.CategoryChangeAllowed = true;
|
|
_ScreenSongOptions.Selection.NumJokers = null;
|
|
|
|
_ScreenSongOptions.Sorting.SearchString = String.Empty;
|
|
_ScreenSongOptions.Sorting.SearchStringVisible = false;
|
|
}
|
|
|
|
public override CMenuParty GetNextPartyScreen()
|
|
{
|
|
CMenuParty Screen = null;
|
|
_Screens.TryGetValue("PartyScreenChallengeConfig", out Screen);
|
|
return Screen;
|
|
}
|
|
|
|
public override ScreenSongOptions GetScreenSongOptions()
|
|
{
|
|
_ScreenSongOptions.Sorting.SongSorting = _Base.Config.GetSongSorting();
|
|
_ScreenSongOptions.Sorting.Tabs = _Base.Config.GetTabs();
|
|
_ScreenSongOptions.Sorting.IgnoreArticles = _Base.Config.GetIgnoreArticles();
|
|
|
|
return _ScreenSongOptions;
|
|
}
|
|
|
|
public override void SetSearchString(string SearchString, bool Visible)
|
|
{
|
|
_ScreenSongOptions.Sorting.SearchString = SearchString;
|
|
_ScreenSongOptions.Sorting.SearchStringVisible = Visible;
|
|
}
|
|
|
|
public override int GetMaxPlayer()
|
|
{
|
|
return MaxPlayer;
|
|
}
|
|
|
|
public override int GetMinPlayer()
|
|
{
|
|
return MinPlayer;
|
|
}
|
|
|
|
public override int GetMaxTeams()
|
|
{
|
|
return MaxTeams;
|
|
}
|
|
|
|
public override int GetMinTeams()
|
|
{
|
|
return MinTeams;
|
|
}
|
|
|
|
}
|
|
} |