public CableSegmentRenderer(CableSegment cableSegment) { this.cableSegment = cableSegment; line = new Line { Stroke = MainWindow.Self.Theme.MainColor, StrokeThickness = Constants.LineWidth, StrokeStartLineCap = PenLineCap.Triangle }; Panel.SetZIndex(line, 0); cableSegment.OnRenderedChanged += OnRenderedChanged; if (cableSegment.IsRendered) { OnRenderedChanged(); } }
public CableSegmentHitbox(CableSegment cableSegment) : base(Cable.HitboxWidth, Cable.DistanceFactor) { this.cableSegment = cableSegment; }
public LineHitbox(CableSegment cableSegment) { this.cableSegment = cableSegment; }