fixed party mode xml reading, added compiler code, added challenge game mode files (just a first test)

This commit is contained in:
Alexander Eckart committed 2012-12-14 22:57:00 +01:00
1 parent d6c97568c9
commit fb4c7de142
4 files changed
+115 -4

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<PartyModeSystemVersion>1</PartyModeSystemVersion>
<Info>
<Name>Challenge</Name>
<Author>brunzel</Author>
<Folder>Challenge</Folder>
<PartyModeFile>CPartyModeChallenge.cs</PartyModeFile>
<PartyModeVersionMajor>0</PartyModeVersionMajor>
<PartyModeVersionMinor>1</PartyModeVersionMinor>
</Info>
</root>
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Vocaluxe.PartyModes
{
public class CPartyModeChallenge : CPartyMode
{
public CPartyModeChallenge()
{
_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 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;
}
}
}