public override void Draw(GameTime gameTime) { graphicsDevice.Clear(Resources.ColorBg); spriteBatch.Begin(SpriteSortMode.Deferred); // Draw our Buttons buttonNewGame.Draw(spriteBatch); buttonContinue.Draw(spriteBatch); buttonOptions.Draw(spriteBatch); buttonHowToPlay.Draw(spriteBatch); buttonExit.Draw(spriteBatch); buttonHighScore.Draw(spriteBatch); // Update Non Button Sprites sTitle.customDrawButton(spriteBatch); sTriangle.Draw(spriteBatch); // Draw the cursor Vector2 cursorOffset = new Vector2(Resources.Pointer.Width, Resources.Pointer.Height); spriteBatch.Draw(Resources.Pointer, PlayerInput.mousePosition - (cursorOffset / 2), Color.White); spriteBatch.End(); }
public void Draw(SpriteBatch spriteBatch) { // Draw our button button.customDrawButton(spriteBatch); if (PlayerInput.keyHeld(Keys.B)) { button.drawInfo(spriteBatch, Color.Red, Color.Green); } }