Added constructors to STheme* for copying.

This commit is contained in:
Florian Küpper committed 2014-09-10 11:17:36 +02:00
1 parent cea276090d
commit 9cca49745a
13 files changed
+246 -25

No files matched your search

+12 -1
View File
@@ -42,6 +42,17 @@ namespace VocaluxeLib.Menu
public float Size;
[XmlElement("MaxNumber")]
public int MaxNumber;
public SThemeParticleEffect(SThemeParticleEffect theme)
{
Name = theme.Name;
TextureName = theme.TextureName;
Rect = new SRectF(theme.Rect);
Color = new SThemeColor(theme.Color);
Type = theme.Type;
Size = theme.Size;
MaxNumber = theme.MaxNumber;
}
}
public enum EParticleType
@@ -632,7 +643,7 @@ namespace VocaluxeLib.Menu
public SThemeParticleEffect GetTheme()
{
return _Theme;
return new SThemeParticleEffect(_Theme);
}
#region ThemeEdit