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

+11 -1
View File
@@ -48,6 +48,16 @@ namespace VocaluxeLib.Menu
[XmlElement("Skin")]
public string TextureName;
public SThemeColor Color;
public SThemeBackground(SThemeBackground theme)
{
Name = theme.Name;
Type = theme.Type;
SlideShowTextures = theme.SlideShowTextures;
VideoName = theme.VideoName;
TextureName = theme.TextureName;
Color = new SThemeColor(theme.Color);
}
}
public class CBackground : IMenuElement
@@ -256,7 +266,7 @@ namespace VocaluxeLib.Menu
public SThemeBackground GetTheme()
{
return _Theme;
return new SThemeBackground(_Theme);
}
#endregion public