Remove unneeded constructors.
This commit is contained in:
1 parent
9ab0ea5f34
commit
4f8c482645
12 files changed
+48
-220
No files matched your search
@@ -32,15 +32,6 @@ 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
|
||||
@@ -128,7 +119,7 @@ namespace VocaluxeLib.Menu
|
||||
public CStatic(SThemeStatic theme, int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeStatic(theme);
|
||||
_Theme = theme;
|
||||
|
||||
LoadTextures();
|
||||
}
|
||||
@@ -281,7 +272,7 @@ namespace VocaluxeLib.Menu
|
||||
|
||||
public SThemeStatic GetTheme()
|
||||
{
|
||||
return new SThemeStatic(_Theme);
|
||||
return _Theme;
|
||||
}
|
||||
|
||||
#region ThemeEdit
|
||||
|
||||
Reference in new issue
Block a user