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();
            }
        }
示例#2
0
 public CableSegmentHitbox(CableSegment cableSegment) : base(Cable.HitboxWidth, Cable.DistanceFactor)
 {
     this.cableSegment = cableSegment;
 }
示例#3
0
 public LineHitbox(CableSegment cableSegment)
 {
     this.cableSegment = cableSegment;
 }