Description
Create a centralized UIRenderManager to handle all SpriteBatch Begin/End calls consistently across the UI system. The current implementation has nested SpriteBatch calls causing rendering issues, particularly with the crafting UI.
Requirements
- Create UIRenderManager class to handle all UI rendering
- Implement layered rendering approach (Bottom, Middle, Top)
- Fix inconsistent SpriteBatch Begin/End patterns
- Add proper depth management for UI elements
- Ensure single responsibility for rendering
Technical Details
Current issues occur in:
- UIManager.Draw()
- CraftingUI.Draw()
- PlayingState.Draw()
These methods have inconsistent SpriteBatch management that causes rendering issues when UIs are nested.
Acceptance Criteria
Description
Create a centralized UIRenderManager to handle all SpriteBatch Begin/End calls consistently across the UI system. The current implementation has nested SpriteBatch calls causing rendering issues, particularly with the crafting UI.
Requirements
Technical Details
Current issues occur in:
These methods have inconsistent SpriteBatch management that causes rendering issues when UIs are nested.
Acceptance Criteria