Removed built in debugger due to issue with spritebatch and requireing it to restart the batch. May be replaced with a better solution later.

This commit is contained in:
Harrison Deng 2019-03-05 23:05:39 -06:00
parent e19f6be719
commit 238cdbde71

View File

@ -13,13 +13,6 @@ namespace RecrownedAthenaeum.UI.Modular
/// </summary>
public class UIModule : IInputListener
{
private RectangleRenderer rectangleRenderer;
/// <summary>
/// Draws rectangle using the bounds of this module.
/// </summary>
public bool Debugging { set { if (value) { if (rectangleRenderer == null) rectangleRenderer = new RectangleRenderer(); } else { rectangleRenderer?.Dispose(); rectangleRenderer = null; } } get { return rectangleRenderer != null; } }
/// <summary>
/// The bounds before factoring in the origin.
/// </summary>
@ -71,12 +64,6 @@ namespace RecrownedAthenaeum.UI.Modular
/// <param name="batch">Batch used to draw.</param>
public virtual void Draw(SpriteBatch batch)
{
if (Debugging)
{
rectangleRenderer.Begin();
rectangleRenderer.Draw(TrueBounds.X, TrueBounds.Y, TrueBounds.Width, TrueBounds.Height, Color.Red);
rectangleRenderer.End();
}
}
/// <summary>