public void Draw(SpriteBatch spriteBatch) { spriteBatch.Begin(); spriteBatch.DrawRectangle(_backgroundRectangle, _backgroundColor); _title.Draw(spriteBatch); _playButton.Draw(spriteBatch); _aboutButton.Draw(spriteBatch); spriteBatch.DrawString(_writingFont, _scoreText, _scoreDrawingInfos); if (_rateMeDialog.ShouldShowDialog) { _rateMeDialog.Draw(spriteBatch); } spriteBatch.End(); }
public void Draw(SpriteBatch spriteBatch) { spriteBatch.Begin(); spriteBatch.Draw(_background); spriteBatch.Draw(_titleImage, _titleDrawingInfos); spriteBatch.DrawString(_font, _playText, _playDrawingInfos); spriteBatch.DrawString(_font, _fartText, _fartDrawingInfos); spriteBatch.DrawString(_font, _scoreText, _scoreDrawingInfos); spriteBatch.DrawString(_font, _achievementText, _aboutDrawingInfos); if (_rateMeDialog.ShouldShowDialog) { _rateMeDialog.Draw(spriteBatch); } spriteBatch.End(); }