Exemplo n.º 1
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (image != null)
     {
         image.Draw(gameTime, spriteBatch);
     }
 }
Exemplo n.º 2
0
 protected override void Draw(GameTime gameTime)
 {
     GraphicsDevice.Clear(Color.Black);
     spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, spriteScale);
     gameStateManager.Draw(gameTime, spriteBatch);
     spritemouse.Draw(gameTime, spriteBatch);
     spriteBatch.End();
 }
Exemplo n.º 3
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     // draw the image if it exists
     if (image != null)
     {
         image.Draw(gameTime, spriteBatch);
     }
 }
Exemplo n.º 4
0
 public override void Draw(Graphics graphics)
 {
     if (image != null)
     {
         image.Draw(graphics);
         this.Rectangle = image.BoundingBox;
     }
 }
Exemplo n.º 5
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     base.Draw(gameTime, spriteBatch);
     if (visible)
     {
         substance.Draw(gameTime, spriteBatch);
     }
 }
Exemplo n.º 6
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (!Visible)
     {
         return;
     }
     arrow.Draw(gameTime, spriteBatch);
     alignment.Draw(gameTime, spriteBatch);
 }
Exemplo n.º 7
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (!Visible)
     {
         return;
     }
     container.Draw(gameTime, spriteBatch);
     text.Draw(gameTime, spriteBatch);
 }
Exemplo n.º 8
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     base.Draw(gameTime, spriteBatch);
     if (!Visible)
     {
         return;
     }
     for (int i = 0; i < pairs.Length; i++)
     {
         pairSprite.Position          = new Vector2(110 + i * Sprite.Height, 8);
         pairSprite.Sprite.SheetIndex = pairs[i];
         pairSprite.Draw(gameTime, spriteBatch);
     }
 }
Exemplo n.º 9
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     base.Draw(gameTime, spriteBatch);
     overlay.Sprite.Size = new Vector2(1, timer / waittime);
     overlay.Draw(gameTime, spriteBatch);
 }
Exemplo n.º 10
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     base.Draw(gameTime, spriteBatch);
     box.Draw(gameTime, spriteBatch);
     descritption.Draw(gameTime, spriteBatch);
 }