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

+18 -3
View File
@@ -49,8 +49,23 @@ namespace VocaluxeLib.Menu
[XmlElement("Text")]
public string Text;
public SReflection Reflection;
public SThemeText(SThemeText theme)
{
Name = theme.Name;
X = theme.X;
Y = theme.Y;
Z = theme.Z;
Height = theme.Height;
Color = new SThemeColor(theme.Color);
SColor = new SThemeColor(theme.SColor);
Align = theme.Align;
ResizeAlign = theme.ResizeAlign;
Style = theme.Style;
Font = theme.Font;
Text = theme.Text;
Reflection = new SReflection(theme.Reflection);
}
}
public class CText : IMenuElement
@@ -578,7 +593,7 @@ namespace VocaluxeLib.Menu
public SThemeText GetTheme()
{
return _Theme;
return new SThemeText(_Theme);
}
#region ThemeEdit