Added methods to get party-mode-folder.

This commit is contained in:
Florian Küpper committed 2013-05-15 15:49:24 +02:00
1 parent 62efcd84d0
commit bef0717c15
3 files changed
+14

No files matched your search

+1
View File
@@ -302,6 +302,7 @@ namespace Vocaluxe.Base
return pm;
}
pm.PartyMode.Initialize();
pm.PartyMode.SetFolder(pm.Folder);
if (!CTheme.AddTheme(Path.Combine(Directory.GetCurrentDirectory(), Path.Combine(Path.Combine(CSettings.FolderPartyModes, pm.Folder), "Theme.xml")), pm.PartyModeID))
return pm;
+11
View File
@@ -25,6 +25,7 @@ namespace VocaluxeLib.PartyModes
{
public abstract class CPartyMode : IPartyMode
{
protected string _Folder;
protected SScreenSongOptions _ScreenSongOptions;
protected readonly Dictionary<string, CMenuParty> _Screens;
@@ -101,6 +102,16 @@ namespace VocaluxeLib.PartyModes
return 1;
}
public string GetFolder()
{
return _Folder;
}
public void SetFolder(string folder)
{
_Folder = folder;
}
public virtual void SetSearchString(string searchString, bool visible) {}
public virtual void JokerUsed(int teamNr)
+2
View File
@@ -104,6 +104,8 @@ namespace VocaluxeLib.PartyModes
int GetMaxTeams();
int GetMinTeams();
int GetMaxNumRounds();
string GetFolder();
void SetFolder(string folder);
void SetSearchString(string searchString, bool visible);