Beispiel #1
0
        public void DrawRank(SpriteBatch spriteBatch)
        {
            spriteBatch.DrawString(TextureManager.SpriteFont20, "Rank: " + Rank, new Vector2(Globals.ScreenSize.X / 2 - TextureManager.SpriteFont20.MeasureString("Rank: " + Rank).X / 2, 100), new Color(0, 255, 255));
            Experience.Draw(spriteBatch);

            for (int i = 0; i < RankPerks.Count(); i++)
            {
                spriteBatch.DrawString(TextureManager.SpriteFont15, RankPerks[i], new Vector2(Globals.ScreenSize.X / 2 - TextureManager.SpriteFont15.MeasureString(RankPerks[i]).X / 2, i * 25 + 150), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.01f);
            }
        }