Asteroids_GameOverTarik.GameOverMenu.Draw C# (CSharp) Method

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.DrawString(spriteFont, textUpHeader, posUpHeader, col);
            spriteBatch.Draw(txHeader, recHeader, col);
            for (int i = 0; i < 3; i++)
            {
                spriteBatch.Draw(BtnArrowUp, recArrowUp[i], col);
                spriteBatch.Draw(BtnArrowDown, recArrowDown[i], col);
            }
            spriteBatch.DrawString(spriteFont, textDownHeader, posDownHeader, col, 0, new Vector2(0, 0), 0.7f, SpriteEffects.None, 0f);
            spriteBatch.DrawString(spriteFont, EnterName, posEnterName, col);
            spriteBatch.DrawString(spriteFont, Name, posName, col);
            spriteBatch.DrawString(spriteFont, textUpScore, posUpScore, col);
            spriteBatch.DrawString(spriteFont, textScore, posScore, col, 0, new Vector2(0, 0), 0.85f, SpriteEffects.None, 0f);

            spriteBatch.Draw(txMainMenu, recMainMenu, col);
            spriteBatch.Draw(txRetry, recRetry, col);
        }