some additional changes
This commit is contained in:
1 parent
cd07317ac0
commit
39b9d77fc8
28 files changed
+95
-71
No files matched your search
+16
-1
@@ -33,7 +33,7 @@ namespace Vocaluxe.Base
|
|||||||
public static IPlaylist Playlist = new BPlaylist();
|
public static IPlaylist Playlist = new BPlaylist();
|
||||||
|
|
||||||
|
|
||||||
public static Menu.Base Base = new Menu.Base(
|
public static Basic Base = new Basic(
|
||||||
Config, Settings, Theme, Helper, Log, BackgroundMusic, Draw, Graphics, Fonts, Language, Game, Profiles, Record, Songs, Video, Sound, Cover, DataBase, Input, Playlist);
|
Config, Settings, Theme, Helper, Log, BackgroundMusic, Draw, Graphics, Fonts, Language, Game, Profiles, Record, Songs, Video, Sound, Cover, DataBase, Input, Playlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,6 +100,21 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
return CConfig.SongFolder;
|
return CConfig.SongFolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ESongSorting GetSongSorting()
|
||||||
|
{
|
||||||
|
return CConfig.SongSorting;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EOffOn GetTabs()
|
||||||
|
{
|
||||||
|
return CConfig.Tabs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EOffOn GetIgnoreArticles()
|
||||||
|
{
|
||||||
|
return CConfig.IgnoreArticles;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class BSettings : ISettings
|
class BSettings : ISettings
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ namespace Vocaluxe.Base
|
|||||||
//add dummy normal game mode and set it as default
|
//add dummy normal game mode and set it as default
|
||||||
SPartyMode pm = new SPartyMode();
|
SPartyMode pm = new SPartyMode();
|
||||||
pm.PartyMode = new CPartyModeNone();
|
pm.PartyMode = new CPartyModeNone();
|
||||||
|
pm.PartyMode.Initialize(CMain.Base);
|
||||||
_PartyModes.Add(pm);
|
_PartyModes.Add(pm);
|
||||||
_CurrentModeNr = 0;
|
_CurrentModeNr = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
public class CBackground : IMenuElement
|
public class CBackground : IMenuElement
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private SThemeBackground _Theme;
|
private SThemeBackground _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ namespace Vocaluxe.Menu
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
public CBackground(Base Base)
|
public CBackground(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_ThemeLoaded = false;
|
_ThemeLoaded = false;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
class CButton : IMenuElement
|
class CButton : IMenuElement
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private SThemeButton _Theme;
|
private SThemeButton _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ namespace Vocaluxe.Menu
|
|||||||
return _Theme.Name;
|
return _Theme.Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CButton(Base Base)
|
public CButton(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeButton();
|
_Theme = new SThemeButton();
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
class CEqualizer : IMenuElement
|
class CEqualizer : IMenuElement
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private SThemeEqualizer _Theme;
|
private SThemeEqualizer _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
private float[] _Bars;
|
private float[] _Bars;
|
||||||
|
|
||||||
public CEqualizer(Base Base)
|
public CEqualizer(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeEqualizer();
|
_Theme = new SThemeEqualizer();
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
class CLyric : IMenuElement
|
class CLyric : IMenuElement
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private SThemeLyrics _Theme;
|
private SThemeLyrics _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ namespace Vocaluxe.Menu
|
|||||||
set { _Style = value; }
|
set { _Style = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public CLyric(Base Base)
|
public CLyric(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeLyrics();
|
_Theme = new SThemeLyrics();
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ namespace Vocaluxe.Menu
|
|||||||
protected string[] _ThemePlaylists;
|
protected string[] _ThemePlaylists;
|
||||||
|
|
||||||
protected SRectF _ScreenArea;
|
protected SRectF _ScreenArea;
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
|
|
||||||
public SRectF ScreenArea
|
public SRectF ScreenArea
|
||||||
{
|
{
|
||||||
@@ -94,7 +94,7 @@ namespace Vocaluxe.Menu
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Initialize(Base Base)
|
public void Initialize(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
Init();
|
Init();
|
||||||
@@ -2326,7 +2326,7 @@ namespace Vocaluxe.Menu
|
|||||||
#endregion Theme Handling
|
#endregion Theme Handling
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Base
|
public class Basic
|
||||||
{
|
{
|
||||||
public IConfig Config;
|
public IConfig Config;
|
||||||
public ISettings Settings;
|
public ISettings Settings;
|
||||||
@@ -2349,7 +2349,7 @@ namespace Vocaluxe.Menu
|
|||||||
public IInputs Input;
|
public IInputs Input;
|
||||||
public IPlaylist Playlist;
|
public IPlaylist Playlist;
|
||||||
|
|
||||||
public Base(IConfig Config, ISettings Settings, ITheme Theme, IHelper Helper, ILog Log, IBackgroundMusic BackgroundMusic,
|
public Basic(IConfig Config, ISettings Settings, ITheme Theme, IHelper Helper, ILog Log, IBackgroundMusic BackgroundMusic,
|
||||||
IDrawing Draw, IGraphics Graphics, IFonts Fonts, ILanguage Language, IGame Game, IProfiles Profiles, IRecording Record,
|
IDrawing Draw, IGraphics Graphics, IFonts Fonts, ILanguage Language, IGame Game, IProfiles Profiles, IRecording Record,
|
||||||
ISongs Songs, IVideo Video, ISound Sound, ICover Cover, IDataBase DataBase, IInputs Input, IPlaylist Playlist)
|
ISongs Songs, IVideo Video, ISound Sound, ICover Cover, IDataBase DataBase, IInputs Input, IPlaylist Playlist)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,12 +26,12 @@ namespace Vocaluxe.Menu
|
|||||||
{
|
{
|
||||||
class CTile
|
class CTile
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
public int PlayerNr;
|
public int PlayerNr;
|
||||||
public CStatic Avatar;
|
public CStatic Avatar;
|
||||||
public CText Name;
|
public CText Name;
|
||||||
|
|
||||||
public CTile(Base Base)
|
public CTile(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@ namespace Vocaluxe.Menu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private SThemeNameSelection _Theme;
|
private SThemeNameSelection _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ namespace Vocaluxe.Menu
|
|||||||
private CStatic PlayerSelector;
|
private CStatic PlayerSelector;
|
||||||
|
|
||||||
|
|
||||||
public CNameSelection(Base Base)
|
public CNameSelection(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeNameSelection();
|
_Theme = new SThemeNameSelection();
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Vocaluxe.Menu
|
|||||||
{
|
{
|
||||||
class CObjectInteractions
|
class CObjectInteractions
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private List<CInteraction> _Interactions;
|
private List<CInteraction> _Interactions;
|
||||||
private int _Selection = 0;
|
private int _Selection = 0;
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ namespace Vocaluxe.Menu
|
|||||||
get { return _ScreenArea; }
|
get { return _ScreenArea; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public CObjectInteractions(Base Base)
|
public CObjectInteractions(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
Init();
|
Init();
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace Vocaluxe.Menu
|
|||||||
class CParticle
|
class CParticle
|
||||||
{
|
{
|
||||||
#region private vars
|
#region private vars
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private string _TextureName;
|
private string _TextureName;
|
||||||
private STexture _Texture;
|
private STexture _Texture;
|
||||||
private SRectF _Rect;
|
private SRectF _Rect;
|
||||||
@@ -84,7 +84,7 @@ namespace Vocaluxe.Menu
|
|||||||
#endregion public vars
|
#endregion public vars
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
public CParticle(Base Base, string textureName, SColorF color, float x, float y, float size, float maxage, float z, float vx, float vy, float vr, float vsize, EParticeType type)
|
public CParticle(Basic Base, string textureName, SColorF color, float x, float y, float size, float maxage, float z, float vx, float vy, float vr, float vsize, EParticeType type)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_TextureName = textureName;
|
_TextureName = textureName;
|
||||||
@@ -107,7 +107,7 @@ namespace Vocaluxe.Menu
|
|||||||
_Rotation = (float)(_Base.Game.GetRandomDouble() * 360.0);
|
_Rotation = (float)(_Base.Game.GetRandomDouble() * 360.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CParticle(Base Base, STexture texture, SColorF color, float x, float y, float size, float maxage, float z, float vx, float vy, float vr, float vsize, EParticeType type)
|
public CParticle(Basic Base, STexture texture, SColorF color, float x, float y, float size, float maxage, float z, float vx, float vy, float vr, float vsize, EParticeType type)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_TextureName = String.Empty;
|
_TextureName = String.Empty;
|
||||||
@@ -288,7 +288,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
class CParticleEffect
|
class CParticleEffect
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private List<CParticle> _Stars;
|
private List<CParticle> _Stars;
|
||||||
private string _TextureName;
|
private string _TextureName;
|
||||||
private STexture _Texture;
|
private STexture _Texture;
|
||||||
@@ -316,7 +316,7 @@ namespace Vocaluxe.Menu
|
|||||||
set { _Area = value; }
|
set { _Area = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public CParticleEffect(Base Base, int MaxNumber, SColorF Color, SRectF Area, string TextureName, float Size, EParticeType Type)
|
public CParticleEffect(Basic Base, int MaxNumber, SColorF Color, SRectF Area, string TextureName, float Size, EParticeType Type)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Stars = new List<CParticle>();
|
_Stars = new List<CParticle>();
|
||||||
@@ -331,7 +331,7 @@ namespace Vocaluxe.Menu
|
|||||||
_NextSpawnTime = 0f;
|
_NextSpawnTime = 0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CParticleEffect(Base Base, int MaxNumber, SColorF Color, SRectF Area, STexture texture, float Size, EParticeType Type)
|
public CParticleEffect(Basic Base, int MaxNumber, SColorF Color, SRectF Area, STexture texture, float Size, EParticeType Type)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Stars = new List<CParticle>();
|
_Stars = new List<CParticle>();
|
||||||
|
|||||||
@@ -78,14 +78,14 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
class PlaylistElement
|
class PlaylistElement
|
||||||
{
|
{
|
||||||
Base _Base;
|
Basic _Base;
|
||||||
public CStatic Cover;
|
public CStatic Cover;
|
||||||
public CStatic Background;
|
public CStatic Background;
|
||||||
public CText Text1;
|
public CText Text1;
|
||||||
public CSelectSlide SelectSlide;
|
public CSelectSlide SelectSlide;
|
||||||
public int Content;
|
public int Content;
|
||||||
|
|
||||||
public PlaylistElement(Base Base)
|
public PlaylistElement(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
}
|
}
|
||||||
@@ -133,7 +133,7 @@ namespace Vocaluxe.Menu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private SThemePlaylist _Theme;
|
private SThemePlaylist _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -191,7 +191,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
//private static
|
//private static
|
||||||
|
|
||||||
public CPlaylist(Base Base)
|
public CPlaylist(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemePlaylist();
|
_Theme = new SThemePlaylist();
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
class CSelectSlide : IMenuElement, ICloneable
|
class CSelectSlide : IMenuElement, ICloneable
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private SThemeSelectSlide _Theme;
|
private SThemeSelectSlide _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ namespace Vocaluxe.Menu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CSelectSlide(Base Base)
|
public CSelectSlide(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeSelectSlide();
|
_Theme = new SThemeSelectSlide();
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
class CStatic : IMenuElement
|
class CStatic : IMenuElement
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
|
|
||||||
private SThemeStatic _Theme;
|
private SThemeStatic _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
@@ -54,7 +54,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
public EAspect Aspect = EAspect.Stretch;
|
public EAspect Aspect = EAspect.Stretch;
|
||||||
|
|
||||||
public CStatic(Base Base)
|
public CStatic(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeStatic();
|
_Theme = new SThemeStatic();
|
||||||
@@ -90,7 +90,7 @@ namespace Vocaluxe.Menu
|
|||||||
Visible = s.Visible;
|
Visible = s.Visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CStatic(Base Base, STexture texture, SColorF color, SRectF rect)
|
public CStatic(Basic Base, STexture texture, SColorF color, SRectF rect)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeStatic();
|
_Theme = new SThemeStatic();
|
||||||
@@ -108,7 +108,7 @@ namespace Vocaluxe.Menu
|
|||||||
Visible = true;
|
Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CStatic(Base Base, string TextureSkinName, SColorF color, SRectF rect)
|
public CStatic(Basic Base, string TextureSkinName, SColorF color, SRectF rect)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeStatic();
|
_Theme = new SThemeStatic();
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
public class CText : IMenuElement
|
public class CText : IMenuElement
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private SThemeText _Theme;
|
private SThemeText _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -219,7 +219,7 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
public float Alpha = 1f;
|
public float Alpha = 1f;
|
||||||
|
|
||||||
public CText(Base Base)
|
public CText(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeText();
|
_Theme = new SThemeText();
|
||||||
@@ -281,7 +281,7 @@ namespace Vocaluxe.Menu
|
|||||||
EditMode = text.EditMode;
|
EditMode = text.EditMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CText(Base Base, float x, float y, float z, EAlignment align, float h, float mw, float r, float g, float b, float a, EStyle style, string font, string text, float rspace, float rheight)
|
public CText(Basic Base, float x, float y, float z, EAlignment align, float h, float mw, float r, float g, float b, float a, EStyle style, string font, string text, float rspace, float rheight)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeText();
|
_Theme = new SThemeText();
|
||||||
@@ -319,7 +319,7 @@ namespace Vocaluxe.Menu
|
|||||||
ReflectionHeight = rheight;
|
ReflectionHeight = rheight;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CText(Base Base, float x, float y, float z, EAlignment align, float h, float mw, float r, float g, float b, float a, EStyle style, string font, string text)
|
public CText(Basic Base, float x, float y, float z, EAlignment align, float h, float mw, float r, float g, float b, float a, EStyle style, string font, string text)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeText();
|
_Theme = new SThemeText();
|
||||||
@@ -355,7 +355,7 @@ namespace Vocaluxe.Menu
|
|||||||
Reflection = false;
|
Reflection = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CText(Base Base, float x, float y, float z, float h, float mw, EAlignment align, EStyle style, string font, SColorF col, string text, float rspace, float rheight)
|
public CText(Basic Base, float x, float y, float z, float h, float mw, EAlignment align, EStyle style, string font, SColorF col, string text, float rspace, float rheight)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeText();
|
_Theme = new SThemeText();
|
||||||
@@ -393,7 +393,7 @@ namespace Vocaluxe.Menu
|
|||||||
ReflectionHeight = rheight;
|
ReflectionHeight = rheight;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CText(Base Base, float x, float y, float z, float h, float mw, EAlignment align, EStyle style, string font, SColorF col, string text)
|
public CText(Basic Base, float x, float y, float z, float h, float mw, EAlignment align, EStyle style, string font, SColorF col, string text)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeText();
|
_Theme = new SThemeText();
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace Vocaluxe.Menu
|
|||||||
{
|
{
|
||||||
interface IMenu
|
interface IMenu
|
||||||
{
|
{
|
||||||
void Initialize(Base Base);
|
void Initialize(Basic Base);
|
||||||
|
|
||||||
void LoadTheme();
|
void LoadTheme();
|
||||||
void SaveTheme();
|
void SaveTheme();
|
||||||
@@ -62,6 +62,9 @@ namespace Vocaluxe.Menu
|
|||||||
int GetCoverSize();
|
int GetCoverSize();
|
||||||
|
|
||||||
List<string> GetSongFolder();
|
List<string> GetSongFolder();
|
||||||
|
ESongSorting GetSongSorting();
|
||||||
|
EOffOn GetTabs();
|
||||||
|
EOffOn GetIgnoreArticles();
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface ISettings
|
public interface ISettings
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace Vocaluxe.Menu.SingNotes
|
|||||||
|
|
||||||
public class CNote
|
public class CNote
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private int _StartBeat;
|
private int _StartBeat;
|
||||||
private int _Duration;
|
private int _Duration;
|
||||||
private int _Tone;
|
private int _Tone;
|
||||||
@@ -93,7 +93,7 @@ namespace Vocaluxe.Menu.SingNotes
|
|||||||
private bool _Perfect; // for drawing perfect note effect
|
private bool _Perfect; // for drawing perfect note effect
|
||||||
|
|
||||||
#region Contructors
|
#region Contructors
|
||||||
public CNote(Base Base)
|
public CNote(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
StartBeat = 0;
|
StartBeat = 0;
|
||||||
@@ -117,7 +117,7 @@ namespace Vocaluxe.Menu.SingNotes
|
|||||||
_Perfect = note._Perfect;
|
_Perfect = note._Perfect;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CNote(Base Base, int StartBeat, int Duration, int Tone, string Text)
|
public CNote(Basic Base, int StartBeat, int Duration, int Tone, string Text)
|
||||||
: this(Base)
|
: this(Base)
|
||||||
{
|
{
|
||||||
this.StartBeat = StartBeat;
|
this.StartBeat = StartBeat;
|
||||||
@@ -127,7 +127,7 @@ namespace Vocaluxe.Menu.SingNotes
|
|||||||
this.Text = Text;
|
this.Text = Text;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CNote(Base Base, int StartBeat, int Duration, int Tone, string Text, bool Hit)
|
public CNote(Basic Base, int StartBeat, int Duration, int Tone, string Text, bool Hit)
|
||||||
: this(Base)
|
: this(Base)
|
||||||
{
|
{
|
||||||
this.StartBeat = StartBeat;
|
this.StartBeat = StartBeat;
|
||||||
@@ -138,13 +138,13 @@ namespace Vocaluxe.Menu.SingNotes
|
|||||||
this.Hit = Hit;
|
this.Hit = Hit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CNote(Base Base, int StartBeat, int Duration, int Tone, string Text, ENoteType NoteType)
|
public CNote(Basic Base, int StartBeat, int Duration, int Tone, string Text, ENoteType NoteType)
|
||||||
: this(Base, StartBeat, Duration, Tone, Text)
|
: this(Base, StartBeat, Duration, Tone, Text)
|
||||||
{
|
{
|
||||||
this.NoteType = NoteType;
|
this.NoteType = NoteType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CNote(Base Base, int StartBeat, int Duration, int Tone, string Text, bool Hit, ENoteType NoteType)
|
public CNote(Basic Base, int StartBeat, int Duration, int Tone, string Text, bool Hit, ENoteType NoteType)
|
||||||
: this(Base, StartBeat, Duration, Tone, Text)
|
: this(Base, StartBeat, Duration, Tone, Text)
|
||||||
{
|
{
|
||||||
this.NoteType = NoteType;
|
this.NoteType = NoteType;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace Vocaluxe.Menu.SingNotes
|
|||||||
|
|
||||||
abstract class CSingNotes : ISingNotes, IMenuElement
|
abstract class CSingNotes : ISingNotes, IMenuElement
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private SThemeSingBar _Theme;
|
private SThemeSingBar _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ namespace Vocaluxe.Menu.SingNotes
|
|||||||
set { _BarPos = value; }
|
set { _BarPos = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public CSingNotes(Base Base)
|
public CSingNotes(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeSingBar();
|
_Theme = new SThemeSingBar();
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ namespace Vocaluxe.Menu.SingNotes
|
|||||||
{
|
{
|
||||||
class CSingNotesClassic : CSingNotes
|
class CSingNotesClassic : CSingNotes
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
|
|
||||||
public CSingNotesClassic(Base Base)
|
public CSingNotesClassic(Basic Base)
|
||||||
: base(Base)
|
: base(Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
|
|
||||||
public class CSong
|
public class CSong
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
private bool _CoverLoaded = false;
|
private bool _CoverLoaded = false;
|
||||||
private bool _NotesLoaded = false;
|
private bool _NotesLoaded = false;
|
||||||
private STexture _CoverTextureSmall = new STexture(-1);
|
private STexture _CoverTextureSmall = new STexture(-1);
|
||||||
@@ -194,7 +194,7 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CSong(Base Base)
|
public CSong(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
{
|
{
|
||||||
class CSongMenu : ISongMenu
|
class CSongMenu : ISongMenu
|
||||||
{
|
{
|
||||||
private Base _Base;
|
private Basic _Base;
|
||||||
|
|
||||||
private ISongMenu _SongMenu;
|
private ISongMenu _SongMenu;
|
||||||
private ESongMenu _Type;
|
private ESongMenu _Type;
|
||||||
|
|
||||||
public CSongMenu(Base Base)
|
public CSongMenu(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
CreateSongMenu();
|
CreateSongMenu();
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
{
|
{
|
||||||
class CSongMenuBook : CSongMenuFramework
|
class CSongMenuBook : CSongMenuFramework
|
||||||
{
|
{
|
||||||
new private Base _Base;
|
new private Basic _Base;
|
||||||
|
|
||||||
public CSongMenuBook(Base Base)
|
public CSongMenuBook(Basic Base)
|
||||||
: base(Base)
|
: base(Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
{
|
{
|
||||||
class CSongMenuDreidel : CSongMenuFramework
|
class CSongMenuDreidel : CSongMenuFramework
|
||||||
{
|
{
|
||||||
new private Base _Base;
|
new private Basic _Base;
|
||||||
/*
|
/*
|
||||||
private SRectF _ScrollRect;
|
private SRectF _ScrollRect;
|
||||||
private CStatic _CoverBig;
|
private CStatic _CoverBig;
|
||||||
@@ -29,7 +29,7 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public CSongMenuDreidel(Base Base)
|
public CSongMenuDreidel(Basic Base)
|
||||||
: base(Base)
|
: base(Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
|
|
||||||
abstract class CSongMenuFramework : ISongMenu
|
abstract class CSongMenuFramework : ISongMenu
|
||||||
{
|
{
|
||||||
protected Base _Base;
|
protected Basic _Base;
|
||||||
protected SThemeSongMenu _Theme;
|
protected SThemeSongMenu _Theme;
|
||||||
private bool _ThemeLoaded;
|
private bool _ThemeLoaded;
|
||||||
|
|
||||||
@@ -233,7 +233,7 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
_Visible = Visible;
|
_Visible = Visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CSongMenuFramework(Base Base)
|
public CSongMenuFramework(Basic Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
_Theme = new SThemeSongMenu();
|
_Theme = new SThemeSongMenu();
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
{
|
{
|
||||||
class CSongMenuList : CSongMenuFramework
|
class CSongMenuList : CSongMenuFramework
|
||||||
{
|
{
|
||||||
new private Base _Base;
|
new private Basic _Base;
|
||||||
|
|
||||||
public CSongMenuList(Base Base)
|
public CSongMenuList(Basic Base)
|
||||||
: base(Base)
|
: base(Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
{
|
{
|
||||||
class CSongMenuTileBoard : CSongMenuFramework
|
class CSongMenuTileBoard : CSongMenuFramework
|
||||||
{
|
{
|
||||||
new private Base _Base;
|
new private Basic _Base;
|
||||||
private SRectF _ScrollRect;
|
private SRectF _ScrollRect;
|
||||||
private List<CStatic> _Tiles;
|
private List<CStatic> _Tiles;
|
||||||
private CStatic _CoverBig;
|
private CStatic _CoverBig;
|
||||||
@@ -42,7 +42,7 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
|
|
||||||
private bool _SmallView = false;
|
private bool _SmallView = false;
|
||||||
|
|
||||||
public CSongMenuTileBoard(Base Base)
|
public CSongMenuTileBoard(Basic Base)
|
||||||
: base(Base)
|
: base(Base)
|
||||||
{
|
{
|
||||||
_Base = Base;
|
_Base = Base;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
abstract class CPartyMode : IPartyMode
|
abstract class CPartyMode : IPartyMode
|
||||||
{
|
{
|
||||||
|
protected Basic _Base;
|
||||||
protected ScreenSongOptions _ScreenSongOptions;
|
protected ScreenSongOptions _ScreenSongOptions;
|
||||||
protected List<CMenu> _Screens;
|
protected List<CMenu> _Screens;
|
||||||
protected string _Folder;
|
protected string _Folder;
|
||||||
@@ -21,6 +22,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
_ScreenSongOptions.Sorting = new SortingOptions();
|
_ScreenSongOptions.Sorting = new SortingOptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Initialize(Basic Base)
|
||||||
|
{
|
||||||
|
_Base = Base;
|
||||||
|
}
|
||||||
|
|
||||||
#region Implementation
|
#region Implementation
|
||||||
public virtual bool Init(string Folder)
|
public virtual bool Init(string Folder)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using Vocaluxe.Base;
|
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
namespace Vocaluxe.PartyModes
|
||||||
{
|
{
|
||||||
class CPartyModeNone : CPartyMode
|
class CPartyModeNone : CPartyMode
|
||||||
@@ -22,9 +20,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
public override ScreenSongOptions GetScreenSongOptions()
|
public override ScreenSongOptions GetScreenSongOptions()
|
||||||
{
|
{
|
||||||
_ScreenSongOptions.Sorting.SongSorting = CConfig.SongSorting;
|
_ScreenSongOptions.Sorting.SongSorting = _Base.Config.GetSongSorting();
|
||||||
_ScreenSongOptions.Sorting.Tabs = CConfig.Tabs;
|
_ScreenSongOptions.Sorting.Tabs = _Base.Config.GetTabs();
|
||||||
_ScreenSongOptions.Sorting.IgnoreArticles = CConfig.IgnoreArticles;
|
_ScreenSongOptions.Sorting.IgnoreArticles = _Base.Config.GetIgnoreArticles();
|
||||||
|
|
||||||
return _ScreenSongOptions;
|
return _ScreenSongOptions;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
interface IPartyMode
|
interface IPartyMode
|
||||||
{
|
{
|
||||||
bool Init(string Folder);
|
bool Init(string Folder);
|
||||||
|
void Initialize(Basic Base);
|
||||||
|
|
||||||
CMenu GetNextPartyScreen();
|
CMenu GetNextPartyScreen();
|
||||||
EScreens GetStartScreen();
|
EScreens GetStartScreen();
|
||||||
|
|||||||
Reference in new issue
Block a user