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

+10 -1
View File
@@ -32,6 +32,15 @@ namespace VocaluxeLib.Menu
public SThemeColor Color;
public SRectF Rect;
public SReflection Reflection;
public SThemeStatic(SThemeStatic theme)
{
Name = theme.Name;
TextureName = theme.TextureName;
Color = new SThemeColor(theme.Color);
Rect = new SRectF(theme.Rect);
Reflection = new SReflection(theme.Reflection);
}
}
public class CStatic : IMenuElement
@@ -254,7 +263,7 @@ namespace VocaluxeLib.Menu
public SThemeStatic GetTheme()
{
return _Theme;
return new SThemeStatic(_Theme);
}
#region ThemeEdit