Esempio n. 1
0
        public override void RenderOverlay(RenderManager.CameraInfo cameraInfo)
        {
            if (IsHoverPoint)
            {
                HoverPoint.Render(cameraInfo, Colors.Hover, 0.5f);
            }

            RenderPointsOverlay(cameraInfo);

            if (IsSelectPoint)
            {
                switch (IsHoverPoint)
                {
                case true when HoverPoint.Type == MarkupPoint.PointType.Normal:
                    RenderNormalConnectLine(cameraInfo);
                    break;

                case true:
                    RenderRegularConnectLine(cameraInfo);
                    break;

                case false:
                    RenderNotConnectLine(cameraInfo);
                    break;
                }
            }

            Panel.Render(cameraInfo);
        }
Esempio n. 2
0
        public override void Render(RenderManager.CameraInfo cameraInfo)
        {
            if (IsHoverItem)
            {
                HoverItem.Object.Render(cameraInfo, Colors.White, 2f);
            }

            if (IsHoverPoint)
            {
                HoverPoint.Render(cameraInfo, Colors.White, 2f);
            }
        }
Esempio n. 3
0
        public override void RenderOverlay(RenderManager.CameraInfo cameraInfo)
        {
            if (IsHoverPoint)
            {
                if (Utility.CtrlIsPressed)
                {
                    HoverPoint.Render(new OverlayData(cameraInfo)
                    {
                        Width = 0.53f
                    });
                }
                else
                {
                    HoverPoint.Render(new OverlayData(cameraInfo)
                    {
                        Color = Colors.Hover, Width = 0.53f
                    });
                }
            }

            RenderPointsOverlay(cameraInfo, !Utility.CtrlIsPressed);

            if (IsSelectPoint)
            {
                switch (IsHoverPoint)
                {
                case true when HoverPoint.Type == MarkupPoint.PointType.Normal:
                    RenderNormalConnectLine(cameraInfo);
                    break;

                case true:
                    RenderRegularConnectLine(cameraInfo);
                    break;

                case false:
                    RenderNotConnectLine(cameraInfo);
                    break;
                }
            }

            Panel.Render(cameraInfo);
#if DEBUG
            if (Settings.ShowNodeContour && Tool.Markup is Manager.NodeMarkup markup)
            {
                foreach (var line in markup.Contour)
                {
                    line.Render(new OverlayData(cameraInfo));
                }
            }
#endif
        }
Esempio n. 4
0
        public override void RenderOverlay(RenderManager.CameraInfo cameraInfo)
        {
            if (IsHoverPoint)
            {
                if (InputExtension.CtrlIsPressed)
                {
                    HoverPoint.Render(new OverlayData(cameraInfo)
                    {
                        Width = 0.53f
                    });
                }
                else
                {
                    HoverPoint.Render(new OverlayData(cameraInfo)
                    {
                        Color = Colors.Hover, Width = 0.53f
                    });
                }
            }

            RenderPointsOverlay(cameraInfo, !InputExtension.CtrlIsPressed);

            if (IsSelectPoint)
            {
                switch (IsHoverPoint)
                {
                case true when HoverPoint.Type == MarkupPoint.PointType.Normal:
                    RenderNormalConnectLine(cameraInfo);
                    break;

                case true:
                    RenderRegularConnectLine(cameraInfo);
                    break;

                case false:
                    RenderNotConnectLine(cameraInfo);
                    break;
                }
            }

            Panel.Render(cameraInfo);
        }
Esempio n. 5
0
        public override void RenderOverlay(RenderManager.CameraInfo cameraInfo)
        {
            if (IsHoverPoint)
            {
                HoverPoint.Render(cameraInfo, Colors.Hover, 0.5f);
            }

            RenderPointsOverlay(cameraInfo);

            if (IsSelectPoint)
            {
                if (IsHoverPoint)
                {
                    RenderConnectCrosswalkLine(cameraInfo);
                }
                else
                {
                    RenderNotConnectCrosswalkLine(cameraInfo);
                }
            }
        }