Fix mouse and hud drawing

This commit is contained in:
Mootfrost777 2024-08-17 12:16:39 +03:00
parent 81ab544d11
commit fcc8fac8ea
2 changed files with 5 additions and 3 deletions

View file

@ -52,7 +52,7 @@ public abstract class AbstractGUI
{
Manager.Draw(spriteBatch);
spriteBatch.Begin();
spriteBatch.Draw(mouse, new Rectangle(mouseState.Position.X, mouseState.Position.Y, 20, 40), Color.Red);
spriteBatch.Draw(mouse, new Rectangle(mouseState.Position.X, mouseState.Position.Y, 20, 40), Color.White);
spriteBatch.End();
}
}

View file

@ -117,8 +117,7 @@ namespace ZoFo.GameCore.GameManagers
{
GraphicsDevice.Clear(Color.CornflowerBlue);
currentGUI.Draw(_spriteBatch);
debugHud.Draw(_spriteBatch);
// Pointwrap
_spriteBatch.Begin(samplerState: SamplerState.PointWrap);
@ -132,7 +131,10 @@ namespace ZoFo.GameCore.GameManagers
default:
break;
}
_spriteBatch.End();
currentGUI.Draw(_spriteBatch);
debugHud.Draw(_spriteBatch);
base.Draw(gameTime);
}