public void Draw() { for (int i = 0; i < Windows.Count; i++) //dynamic windows draw loop { Windows[i].Draw(offset, new Color(56, 58, 60)); } menu.Draw(offset, new Color(39, 44, 48)); DockSpace.Draw(); }
public void Update() { for (int i = Windows.Count - 1; i > -1; i--) //dynamic windows update loop { Windows[i].Update(offset); if (Windows[i].delete) { Windows.RemoveAt(i); i--; } } DockSpace.Update(); menu.Update(offset); }