Esempio n. 1
0
 public void DrawSelectBox(ExtendedSpriteBatch mybatch)
 {
     if (needsToDraw)
     {
         mybatch.DrawRectangle(selectionBox, Color.White);
     }
 }
Esempio n. 2
0
 public override void DrawObject(ExtendedSpriteBatch myBatch)
 {
     SetAbsoluteRadarPos(myBatch.GraphicsDevice.Viewport.Width, myBatch.GraphicsDevice.Viewport.Height);
     if (this.texture != null)
     {
         myBatch.Draw(this.texture, this.AbsoluteRadarPos, null, this.drawColor, RadarRot, new Vector2(this.texture.Width / 2, this.texture.Height / 2), 0.08f, SpriteEffects.None, 0f);
         if (selected)
         {
             myBatch.DrawRectangle(new Rectangle((int)this.AbsoluteRadarPos.X - 15, (int)this.AbsoluteRadarPos.Y - 15, 30, 30), Color.Chartreuse);
         }
     }
 }