Fix mouse and hud drawing
This commit is contained in:
parent
81ab544d11
commit
fcc8fac8ea
2 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue