Move non-drawing stuff out of Draw methods

This commit is contained in:
Flamefire committed 2014-10-19 18:37:16 +02:00
1 parent 432ff4f4f3
commit 4c7013836b
7 files changed
+21 -39

No files matched your search

+6 -5
View File
@@ -331,14 +331,10 @@ namespace VocaluxeLib.Menu
return _ThemeLoaded;
}
public override void Draw()
public void UpdateGame()
{
if (_PlaylistElements.Count <= 0)
LoadPlaylist(0);
if (!Visible && CBase.Settings.GetProgramState() != EProgramState.EditTheme)
return;
base.Draw();
for (int i = 0; i < _PlaylistElements.Count; i++)
{
if (i == _CurrentPlaylistElement && _Selected)
@@ -352,6 +348,11 @@ namespace VocaluxeLib.Menu
_PlaylistElements[i].Background.Color = _BackgroundColor;
}
}
}
public override void Draw()
{
base.Draw();
if (_ChangeOrderElement != null)
_ChangeOrderElement.Draw();