Client LuaCsForBarotrauma
BarotraumaClient/ClientSource/Items/Components/Signal/MotionSensor.cs
1 using Microsoft.Xna.Framework;
2 using Microsoft.Xna.Framework.Graphics;
3 
5 {
6  partial class MotionSensor : IDrawableComponent
7  {
8  public Vector2 DrawSize
9  {
10  get { return new Vector2(rangeX, rangeY) * 2.0f; }
11  }
12 
13  public void Draw(SpriteBatch spriteBatch, bool editing, float itemDepth = -1, Color? overrideColor = null)
14  {
15  if ((editing && MapEntity.SelectedList.Contains(item)) ||
17  {
19  pos.Y = -pos.Y;
20  GUI.DrawRectangle(spriteBatch, pos - new Vector2(rangeX, rangeY), new Vector2(rangeX, rangeY) * 2.0f, Color.Cyan * 0.5f, isFilled: false, thickness: 2);
21  }
22  }
23  }
24 }
25 
Item????????? SelectedItem
The primary selected item. It can be any device that character interacts with. This excludes items li...
void Draw(SpriteBatch spriteBatch, bool editing, float itemDepth=-1, Color? overrideColor=null)