From 238cdbde7120bc72b4b183f6942c3e1b7679e5f8 Mon Sep 17 00:00:00 2001 From: Recrown Date: Tue, 5 Mar 2019 23:05:39 -0600 Subject: [PATCH] Removed built in debugger due to issue with spritebatch and requireing it to restart the batch. May be replaced with a better solution later. --- RecrownedAthenaeum/UI/Modular/UIModule.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/RecrownedAthenaeum/UI/Modular/UIModule.cs b/RecrownedAthenaeum/UI/Modular/UIModule.cs index 243831d..b7f9ab7 100644 --- a/RecrownedAthenaeum/UI/Modular/UIModule.cs +++ b/RecrownedAthenaeum/UI/Modular/UIModule.cs @@ -13,13 +13,6 @@ namespace RecrownedAthenaeum.UI.Modular /// public class UIModule : IInputListener { - private RectangleRenderer rectangleRenderer; - - /// - /// Draws rectangle using the bounds of this module. - /// - public bool Debugging { set { if (value) { if (rectangleRenderer == null) rectangleRenderer = new RectangleRenderer(); } else { rectangleRenderer?.Dispose(); rectangleRenderer = null; } } get { return rectangleRenderer != null; } } - /// /// The bounds before factoring in the origin. /// @@ -71,12 +64,6 @@ namespace RecrownedAthenaeum.UI.Modular /// Batch used to draw. public virtual void Draw(SpriteBatch batch) { - if (Debugging) - { - rectangleRenderer.Begin(); - rectangleRenderer.Draw(TrueBounds.X, TrueBounds.Y, TrueBounds.Width, TrueBounds.Height, Color.Red); - rectangleRenderer.End(); - } } ///