Added constructors with STheme*-structs, LoadTextures() will be LoadTheme later and set all needed values from theme-struct to object.
This commit is contained in:
1 parent
912cfac8c5
commit
e936fe4126
12 files changed
+132
No files matched your search
@@ -90,6 +90,14 @@ namespace VocaluxeLib.Menu
|
||||
|
||||
Color = new SColorF(0f, 0f, 0f, 1f);
|
||||
}
|
||||
|
||||
public CBackground(SThemeBackground theme, int partyModeID)
|
||||
{
|
||||
_Theme = new SThemeBackground(theme);
|
||||
_PartyModeID = partyModeID;
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
#endregion Constructors
|
||||
|
||||
#region public
|
||||
|
||||
@@ -137,6 +137,17 @@ namespace VocaluxeLib.Menu
|
||||
EditMode = false;
|
||||
}
|
||||
|
||||
public CButton(SThemeButton theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeButton(theme);
|
||||
|
||||
Selected = false;
|
||||
EditMode = false;
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public CButton(CButton button)
|
||||
{
|
||||
_PartyModeID = button._PartyModeID;
|
||||
|
||||
@@ -121,6 +121,17 @@ namespace VocaluxeLib.Menu
|
||||
ReflectionHeight = 0f;
|
||||
}
|
||||
|
||||
public CEqualizer(SThemeEqualizer theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeEqualizer(theme);
|
||||
|
||||
Visible = true;
|
||||
ScreenHandles = false;
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public bool LoadTheme(string xmlPath, string elementName, CXMLReader xmlReader, int skinIndex)
|
||||
{
|
||||
string item = xmlPath + "/" + elementName;
|
||||
|
||||
@@ -128,6 +128,19 @@ namespace VocaluxeLib.Menu
|
||||
LyricStyle = ELyricStyle.Fill;
|
||||
}
|
||||
|
||||
public CLyric(SThemeLyrics theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeLyrics(theme);
|
||||
|
||||
_Line = new CSongLine();
|
||||
_Text = new CText(_PartyModeID);
|
||||
|
||||
LyricStyle = ELyricStyle.Fill;
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public bool LoadTheme(string xmlPath, string elementName, CXMLReader xmlReader, int skinIndex)
|
||||
{
|
||||
string item = xmlPath + "/" + elementName;
|
||||
|
||||
@@ -175,6 +175,18 @@ namespace VocaluxeLib.Menu
|
||||
_UsedProfiles = new List<int>();
|
||||
}
|
||||
|
||||
public CNameSelection(SThemeNameSelection theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeNameSelection(theme);
|
||||
|
||||
_Tiles = new List<CTile>();
|
||||
_VisibleProfiles = new List<int>();
|
||||
_UsedProfiles = new List<int>();
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public void Init()
|
||||
{
|
||||
_PrepareTiles();
|
||||
|
||||
@@ -170,6 +170,8 @@ namespace VocaluxeLib.Menu
|
||||
_MaxAge = maxage;
|
||||
_Rotation = (float)(CBase.Game.GetRandomDouble() * 360.0);
|
||||
}
|
||||
|
||||
|
||||
#endregion Constructors
|
||||
|
||||
public void Update()
|
||||
@@ -399,6 +401,18 @@ namespace VocaluxeLib.Menu
|
||||
Visible = true;
|
||||
}
|
||||
|
||||
public CParticleEffect(SThemeParticleEffect theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeParticleEffect(theme);
|
||||
_Stars = new List<CParticle>();
|
||||
_SpawnTimer = new Stopwatch();
|
||||
_NextSpawnTime = 0f;
|
||||
Visible = true;
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public bool LoadTheme(string xmlPath, string elementName, CXMLReader xmlReader, int skinIndex)
|
||||
{
|
||||
string item = xmlPath + "/" + elementName;
|
||||
|
||||
@@ -307,6 +307,24 @@ namespace VocaluxeLib.Menu
|
||||
Selected = false;
|
||||
}
|
||||
|
||||
public CPlaylist(SThemePlaylist theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemePlaylist(theme);
|
||||
|
||||
CompleteRect = new SRectF();
|
||||
_PlaylistElements = new List<CPlaylistElement>();
|
||||
_PlaylistElementContents = new List<CPlaylistElementContent>();
|
||||
|
||||
_Interactions = new CObjectInteractions();
|
||||
_ChangeOrderElement = new CPlaylistElement();
|
||||
|
||||
Visible = false;
|
||||
Selected = false;
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public void Init()
|
||||
{
|
||||
_Interactions.Clear();
|
||||
|
||||
@@ -75,6 +75,12 @@ namespace VocaluxeLib.Menu
|
||||
_ThemeLoaded = false;
|
||||
}
|
||||
|
||||
public CScreenSetting(SScreenSetting theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SScreenSetting(theme);
|
||||
}
|
||||
|
||||
public bool LoadTheme(string xmlPath, string elementName, CXMLReader xmlReader, int skinIndex)
|
||||
{
|
||||
string item = xmlPath + "/" + elementName;
|
||||
|
||||
@@ -311,6 +311,20 @@ namespace VocaluxeLib.Menu
|
||||
Visible = slide.Visible;
|
||||
}
|
||||
|
||||
public CSelectSlide(SThemeSelectSlide theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeSelectSlide(theme);
|
||||
|
||||
_Selected = false;
|
||||
_Textures = new List<CTexture>();
|
||||
_ValueIndexes = new List<int>();
|
||||
_ValueNames = new List<string>();
|
||||
_ValuePartyModeIDs = new List<int>();
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public bool LoadTheme(string xmlPath, string elementName, CXMLReader xmlReader, int skinIndex)
|
||||
{
|
||||
string item = xmlPath + "/" + elementName;
|
||||
|
||||
@@ -125,6 +125,14 @@ namespace VocaluxeLib.Menu
|
||||
Rect = rect;
|
||||
}
|
||||
|
||||
public CStatic(SThemeStatic theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeStatic(theme);
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public bool LoadTheme(string xmlPath, string elementName, CXMLReader xmlReader, int skinIndex)
|
||||
{
|
||||
string item = xmlPath + "/" + elementName;
|
||||
|
||||
@@ -350,6 +350,14 @@ namespace VocaluxeLib.Menu
|
||||
ReflectionHeight = rheight;
|
||||
}
|
||||
|
||||
public CText(SThemeText theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeText(theme);
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public bool LoadTheme(string xmlPath, string elementName, CXMLReader xmlReader, int skinIndex)
|
||||
{
|
||||
return LoadTheme(xmlPath, elementName, xmlReader, skinIndex, false);
|
||||
|
||||
@@ -266,6 +266,15 @@ namespace VocaluxeLib.Menu.SongMenu
|
||||
};
|
||||
}
|
||||
|
||||
protected CSongMenuFramework(SThemeSongMenu theme, int partyModeID)
|
||||
{
|
||||
Visible = true;
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeSongMenu(theme);
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
#region Theme
|
||||
public string GetThemeName()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user