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

+15 -2
View File
@@ -42,7 +42,20 @@ namespace VocaluxeLib.Menu
[XmlElement("Reflection")]
public SReflection Reflection;
[XmlElement("SelReflection")]
public SReflection SelReflection;
public SReflection SelReflection;
public SThemeButton(SThemeButton theme)
{
Name = theme.Name;
TextureName = theme.TextureName;
SelTextureName = theme.SelTextureName;
Rect = new SRectF(theme.Rect);
Color = new SThemeColor(theme.Color);
SelColor = new SThemeColor(theme.SelColor);
Text = new SThemeText(theme.Text);
Reflection = new SReflection(theme.Reflection);
SelReflection = new SReflection(theme.SelReflection);
}
}
public class CButton : IMenuElement
@@ -396,7 +409,7 @@ namespace VocaluxeLib.Menu
public SThemeButton GetTheme()
{
return _Theme;
return new SThemeButton(_Theme);
}
#region ThemeEdit