public override void Draw(GameTime gameTime, DrowOptions options) { base.Draw(gameTime, options); Vector2 endPosition; if (End == null) { endPosition = GameManager.MousePosition.Location.ToVector2(); } else { endPosition = new Vector2(End.Value.X, End.Value.Y); } var startPosition = new Vector2(Start.X, Start.Y); DrawLine(startPosition, endPosition); }
public virtual void Draw(GameTime gameTime, DrowOptions options) { DrowOptions = options; }
public override void Draw(GameTime gameTime, DrowOptions options) { GameManager.SpriteBatch.Draw(Texture, Position, Color.White); }
public override void Draw(GameTime gameTime, DrowOptions options) { GameManager.SpriteBatch.DrawString(Font, Text, Position, Color); base.Draw(gameTime, options); }