Exemplo n.º 1
0
        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);
            }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
 public override void Update() => Init(CrosswalkLine.Trajectory.Position(CrosswalkLine.GetT(Border)));