added button cloning

This commit is contained in:
Alexander Eckart committed 2012-12-16 12:07:35 +01:00
1 parent becc1c6ee6
commit ce8b56d7aa
2 files changed
+46

No files matched your search

+20
View File
@@ -663,11 +663,21 @@ namespace Vocaluxe.Menu
return new CButton(_Base, _PartyModeID);
}
public CButton GetNewButton(CButton button)
{
return new CButton(button);
}
public CText GetNewText()
{
return new CText(_Base, _PartyModeID);
}
public CText GetNewText(CText text)
{
return new CText(text);
}
public CText GetNewText(float x, float y, float z, float h, float mw, EAlignment align, EStyle style, string font, SColorF col, string text)
{
return new CText(_Base, x, y, z, h, mw, align, style, font, col, text);
@@ -684,6 +694,11 @@ namespace Vocaluxe.Menu
return new CStatic(_Base, _PartyModeID);
}
public CStatic GetNewStatic(CStatic Static)
{
return new CStatic(Static);
}
public CStatic GetNewStatic(STexture Texture, SColorF Color, SRectF Rect)
{
return new CStatic(_Base, _PartyModeID, Texture, Color, Rect);
@@ -694,6 +709,11 @@ namespace Vocaluxe.Menu
return new CSelectSlide(_Base, _PartyModeID);
}
public CSelectSlide GetNewSelectSlide(CSelectSlide slide)
{
return new CSelectSlide(slide);
}
public CSongMenu GetNewSongMenu()
{
return new CSongMenu(_Base, _PartyModeID);