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

+4 -2
View File
@@ -306,17 +306,19 @@ namespace VocaluxeLib.Menu
#region Drawing
public virtual void Draw()
{
if (!_Active)
return;
_DrawBG();
_DrawFG();
}
protected void _DrawBG()
private void _DrawBG()
{
foreach (CBackground bg in _Backgrounds)
bg.Draw();
}
protected void _DrawFG()
private void _DrawFG()
{
if (_Interactions.Count <= 0)
return;