Implement a common Interface for all MenuElements

Also remove CSongMenu and replace it with a factory class
This commit is contained in:
Flamefire committed 2014-10-19 17:17:39 +02:00
1 parent 9479f3b3ff
commit ae7a7fd390
52 files changed
+1043 -1855

No files matched your search

+11 -1
View File
@@ -68,7 +68,7 @@ namespace VocaluxeLib.Menu.SingNotes
[XmlArray("BarPositions")] public SBarPosition[] BarPos;
}
public abstract class CSingNotes : IMenuElement
public abstract class CSingNotes : CMenuElementBase, IMenuElement,IThemeable
{
private readonly int _PartyModeID;
private SThemeSingBar _Theme;
@@ -77,6 +77,11 @@ namespace VocaluxeLib.Menu.SingNotes
private readonly List<SPlayerNotes> _PlayerNotes;
private int _ActID;
public bool Selectable
{
get { return false; }
}
/// <summary>
/// Player bar positions
/// </summary>
@@ -239,6 +244,11 @@ namespace VocaluxeLib.Menu.SingNotes
return _PlayerNotes[n].Alpha;
}
public void Draw()
{
throw new NotImplementedException();
}
public void Draw(int id, List<CSungLine> sungLines, int player)
{
int n = _FindPlayerNotes(id);