Move non-drawing stuff out of Draw methods
This commit is contained in:
1 parent
432ff4f4f3
commit
4c7013836b
7 files changed
+21
-39
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user