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:
Florian Küpper committed 2014-09-10 20:44:39 +02:00
1 parent 912cfac8c5
commit e936fe4126
12 files changed
+132

No files matched your search

+14
View File
@@ -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;