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:
		@@ -13,13 +13,6 @@ namespace RecrownedAthenaeum.UI.Modular
 | 
				
			|||||||
    /// </summary>
 | 
					    /// </summary>
 | 
				
			||||||
    public class UIModule : IInputListener
 | 
					    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>
 | 
					        /// <summary>
 | 
				
			||||||
        /// The bounds before factoring in the origin.
 | 
					        /// The bounds before factoring in the origin.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
@@ -71,12 +64,6 @@ namespace RecrownedAthenaeum.UI.Modular
 | 
				
			|||||||
        /// <param name="batch">Batch used to draw.</param>
 | 
					        /// <param name="batch">Batch used to draw.</param>
 | 
				
			||||||
        public virtual void Draw(SpriteBatch batch)
 | 
					        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>
 | 
					        /// <summary>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user