public override void Draw(SpriteBatch spriteBatch, TextureManager textureManager, FontManager fontManager)
        {
            spriteBatch.Begin ();

            spriteBatch.Draw (textureManager.WhitePixel, new Rectangle (0, 0, MainGame.WindowWidth, MainGame.WindowHeight), Color.Black * 0.5f);

            spriteBatch.DrawString (fontManager.GetFont ("Arial"), "Paused", menu.Position - new Vector2 (0, 50), Color.White);

            menu.Draw (spriteBatch, fontManager);

            spriteBatch.End ();
        }
Esempio n. 2
0
 public void Draw(SpriteBatch spriteBatch, FontManager fontManager)
 {
     for (int i = 0; i < menuItems.Count; i++) {
         spriteBatch.DrawString (fontManager.GetFont(fontName), menuItems [i].Text, Position + new Vector2 (0, i * TextHeight), i==selectedMenuItem ? Color.Red : Color.White);
     }
 }