Пример #1
0
        public static PBLine CreateLine(Drawing drawing, FigureList dependencies, Webb.Playbook.Geometry.Game.PBRoutePoint pbPoint)
        {
            PBLine retLine = new PBLine()
            {
                Drawing     = drawing, Dependencies = dependencies,
                CapType     = pbPoint.CapType,
                LineType    = pbPoint.LineType,
                DashType    = pbPoint.DashType,
                StrokeColor = pbPoint.StrokeColor,
            };

            return(retLine);
        }
Пример #2
0
        public static PBLine CreateLine(Drawing drawing, FigureList dependencies)
        {
            PBLine retLine = new PBLine()
            {
                Drawing      = drawing,
                Dependencies = dependencies,
            };

            if (Behavior.DrawVideo)
            {
                retLine.StrokeColor = Color;
            }

            return(retLine);
        }
Пример #3
0
        public static PBLine CreateArrowLine(Drawing drawing, FigureList dependencies)
        {
            PBLine retLine = new PBLine()
            {
                Drawing = drawing, Dependencies = dependencies, CapType = CapType.Arrow, LineType = LineType, DashType = DashType
            };

            if (drawing.DrawingMode)
            {
                retLine.CapType = CapType;

                retLine.StrokeColor = Color;

                retLine.StrokeThickness = StrokeThickness;
            }

            if (Behavior.DrawVideo)
            {
                retLine.StrokeColor = Color;
            }

            return(retLine);
        }