Ejemplo n.º 1
0
 public void Draw(SpriteBatch spriteBatch, AsciiFontTexture2D asciiFontTexture2D)
 {
     for (var i = 0; i < _menuOptions.Count; i++)
     {
         var color = _defaultColor;
         if (i == _currentIndex)
         {
             color = _highlightColor;
         }
         asciiFontTexture2D.DrawString(spriteBatch, new Rectangle(0, i, 160, 90), color, _menuOptions[i]);
     }
 }
 public void Draw(SpriteBatch spriteBatch, AsciiFontTexture2D asciiFontTexture2D)
 {
     if (_currentGameState != null)
         _currentGameState.Draw(spriteBatch, asciiFontTexture2D);
 }