Remove unneeded constructors.

This commit is contained in:
Florian Küpper committed 2014-09-15 19:44:19 +02:00
1 parent 9ab0ea5f34
commit 4f8c482645
12 files changed
+48 -220

No files matched your search

+2 -31
View File
@@ -87,35 +87,6 @@ namespace VocaluxeLib.Menu
[XmlElement("NumVisible")]
public int NumVisible;
public SThemeSelectSlide(SThemeSelectSlide theme)
{
Name = theme.Name;
TextureName = theme.TextureName;
TextureArrowLeftName = theme.TextureArrowLeftName;
TextureArrowRightName = theme.TextureArrowRightName;
SelTextureName = theme.SelTextureName;
SelTextureArrowLeftName = theme.SelTextureArrowLeftName;
SelTextureArrowRightName = theme.SelTextureArrowRightName;
HighlightTextureName = theme.HighlightTextureName;
Rect = new SRectF(theme.Rect);
RectArrowLeft = new SRectF(theme.RectArrowLeft);
RectArrowRight = new SRectF(theme.RectArrowRight);
Color = new SThemeColor(theme.Color);
SColor = new SThemeColor(theme.SColor);
HColor = new SThemeColor(theme.HColor);
ArrowColor = new SThemeColor(theme.ArrowColor);
ArrowSColor = new SThemeColor(theme.ArrowSColor);
TextColor = new SThemeColor(theme.TextColor);
TextSColor = new SThemeColor(theme.TextSColor);
TextH = theme.TextH;
TextRelativeX = theme.TextRelativeX;
TextRelativeY = theme.TextRelativeY;
TextMaxW = theme.TextMaxW;
TextFont = theme.TextFont;
TextStyle = theme.TextStyle;
NumVisible = theme.NumVisible;
}
}
public class CSelectSlide : IMenuElement, ICloneable
@@ -314,7 +285,7 @@ namespace VocaluxeLib.Menu
public CSelectSlide(SThemeSelectSlide theme, int partyModeID)
{
_PartyModeID = partyModeID;
_Theme = new SThemeSelectSlide(theme);
_Theme = theme;
_Selected = false;
_Textures = new List<CTexture>();
@@ -913,7 +884,7 @@ namespace VocaluxeLib.Menu
public SThemeSelectSlide GetTheme()
{
return new SThemeSelectSlide(_Theme);
return _Theme;
}
public void UnloadTextures() {}