public void Update(bool onlySelfUpdate = false) { EnterLine.Update(GetAlignment(RightBorder.Value, EnterLine.Start), GetAlignment(LeftBorder.Value, EnterLine.End), true); CrosswalkLine.Update(true); if (!onlySelfUpdate) { Markup.Update(this); }
public new void Render(RenderManager.CameraInfo cameraInfo, Color?color = null, float?width = null, bool?alphaBlend = null, bool?cut = null) { Crosswalk.Render(cameraInfo, Colors.Hover); CrosswalkLine.Render(cameraInfo, color, width, alphaBlend, cut); switch (Border) { case BorderPosition.Left: Crosswalk.LeftBorderTrajectory.Render(cameraInfo, color, width, alphaBlend, cut); break; case BorderPosition.Right: Crosswalk.RightBorderTrajectory.Render(cameraInfo, color, width, alphaBlend, cut); break; } }
public new void Render(OverlayData data) { Crosswalk.Render(new OverlayData(data.CameraInfo) { Color = Colors.Hover }); CrosswalkLine.Render(data); switch (Border) { case BorderPosition.Left: Crosswalk.LeftBorderTrajectory.Render(data); break; case BorderPosition.Right: Crosswalk.RightBorderTrajectory.Render(data); break; } }
public override void Update() => Init(CrosswalkLine.Trajectory.Position(CrosswalkLine.GetT(Border)));