Auto cleanup of VocaluxeLib

This commit is contained in:
Flamefire committed 2013-03-22 21:12:45 +01:00
1 parent b497b58740
commit efab579188
37 files changed
+642 -1155

No files matched your search

+8 -22
View File
@@ -25,22 +25,16 @@ namespace VocaluxeLib.PartyModes
return false;
}
public void Initialize()
{
}
public void Initialize() {}
public void AddScreen(CMenuParty Screen, string ScreenName)
{
_Screens.Add(ScreenName, Screen);
}
public virtual void DataFromScreen(string ScreenName, Object Data)
{
}
public virtual void DataFromScreen(string ScreenName, Object Data) {}
public virtual void UpdateGame()
{
}
public virtual void UpdateGame() {}
public virtual CMenuParty GetNextPartyScreen(out EScreens AlternativeScreen)
{
@@ -63,13 +57,9 @@ namespace VocaluxeLib.PartyModes
return new ScreenSongOptions();
}
public virtual void OnSongChange(int SongIndex, ref ScreenSongOptions ScreenSongOptions)
{
}
public virtual void OnSongChange(int SongIndex, ref ScreenSongOptions ScreenSongOptions) {}
public virtual void OnCategoryChange(int CategoryIndex, ref ScreenSongOptions ScreenSongOptions)
{
}
public virtual void OnCategoryChange(int CategoryIndex, ref ScreenSongOptions ScreenSongOptions) {}
public virtual int GetMaxPlayer()
{
@@ -96,9 +86,7 @@ namespace VocaluxeLib.PartyModes
return 1;
}
public virtual void SetSearchString(string SearchString, bool Visible)
{
}
public virtual void SetSearchString(string SearchString, bool Visible) {}
public virtual void JokerUsed(int TeamNr)
{
@@ -112,9 +100,7 @@ namespace VocaluxeLib.PartyModes
_ScreenSongOptions.Selection.NumJokers[TeamNr]--;
}
public virtual void SongSelected(int SongID)
{
}
public virtual void SongSelected(int SongID) {}
public virtual void FinishedSinging()
{
@@ -132,4 +118,4 @@ namespace VocaluxeLib.PartyModes
}
#endregion Implementation
}
}
}
+1 -1
View File
@@ -39,4 +39,4 @@ namespace VocaluxeLib.PartyModes
_ScreenSongOptions.Sorting.SearchActive = Visible;
}
}
}
}
+10 -28
View File
@@ -6,12 +6,11 @@ namespace VocaluxeLib.PartyModes
public class CScreenPartyDummy : CMenuParty
{
// Version number for theme files. Increment it, if you've changed something on the theme files!
protected override int _ScreenVersion { get { return 1; } }
private CText Warning;
public CScreenPartyDummy()
protected override int _ScreenVersion
{
get { return 1; }
}
private CText Warning;
public override void LoadTheme(string XmlPath)
{
@@ -27,30 +26,19 @@ namespace VocaluxeLib.PartyModes
AddText(Warning);
}
public override void ReloadTheme(string XmlPath)
{
}
public override void ReloadTheme(string XmlPath) {}
public override void ReloadTextures()
{
}
public override void ReloadTextures() {}
public override void SaveTheme()
{
}
public override void SaveTheme() {}
public override void UnloadTextures()
{
}
public override void UnloadTextures() {}
public override bool HandleInput(KeyEvent KeyEvent)
{
base.HandleInput(KeyEvent);
if (KeyEvent.KeyPressed)
{
}
if (KeyEvent.KeyPressed) {}
else
{
switch (KeyEvent.Key)
@@ -68,15 +56,10 @@ namespace VocaluxeLib.PartyModes
{
base.HandleMouse(MouseEvent);
if (MouseEvent.LB && IsMouseOver(MouseEvent))
{
}
if (MouseEvent.LB && IsMouseOver(MouseEvent)) {}
if (MouseEvent.RB)
{
FadeTo(EScreens.ScreenParty);
}
return true;
}
@@ -91,6 +74,5 @@ namespace VocaluxeLib.PartyModes
base.Draw();
return true;
}
}
}
}
+10 -9
View File
@@ -3,6 +3,7 @@ using VocaluxeLib.Menu;
namespace VocaluxeLib.PartyModes
{
#region Structs
public struct ScreenSongOptions
{
@@ -21,42 +22,42 @@ namespace VocaluxeLib.PartyModes
}
/// <summary>
/// Configuration of song selection options
/// Configuration of song selection options
/// </summary>
public struct SelectionOptions
{
/// <summary>
/// If != -1, the SongMenu should set the song selection on the provided song index (visible index) if possible
/// 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
/// If true, the SongMenu should perform the select random song method
/// </summary>
public bool SelectNextRandomSong;
/// <summary>
/// Choosing song only by random
/// Choosing song only by random
/// </summary>
public bool RandomOnly;
/// <summary>
/// If true, it is not allowed to go to MainScreen nor open the playlist nor open the song menu
/// If true, it is not allowed to go to MainScreen nor open the playlist nor open the song menu
/// </summary>
public bool PartyMode;
/// <summary>
/// If true, it is not alled to change or leave the category. It's only valid if Tabs=On.
/// If true, it is not alled to change or leave the category. It's only valid if Tabs=On.
/// </summary>
public bool CategoryChangeAllowed;
/// <summary>
/// The number of jokers left for each team
/// The number of jokers left for each team
/// </summary>
public int[] NumJokers;
/// <summary>
/// The Team Name of the teams (:>)
/// The Team Name of the teams (:>)
/// </summary>
public string[] TeamNames;
}
@@ -93,4 +94,4 @@ namespace VocaluxeLib.PartyModes
void LeavingScore();
void LeavingHighscore();
}
}
}