Пример #1
0
 /// <summary>
 /// Draws elements on the screen.
 /// </summary>
 /// <param name="batch">current batchsprite</param>
 public override void Draw(SpriteBatch batch)
 {
     if (Alive)
     {
         batch.Begin();
         backgroundTexture.Draw(batch);
         batch.End();
         batch.GraphicsDevice.Clear(Color.Black);
         base.Draw(batch);
         batch.Begin();
         drawHud(batch);
         batch.End();
     }
 }
Пример #2
0
 /// <summary>
 /// Manual override.
 /// </summary>
 /// <param name="batch"></param>
 public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch batch)
 {
     m_VolumeBar.Draw(batch);
     m_VolumeCursor.Draw(batch);
 }