public static Graphic_Linked WrapLinked(Graphic subGraphic, LinkDrawerType linkDrawerType)
        {
            Graphic_Linked result;

            switch (linkDrawerType)
            {
            case LinkDrawerType.None:
                result = null;
                break;

            case LinkDrawerType.Basic:
                result = new Graphic_Linked(subGraphic);
                break;

            case LinkDrawerType.CornerFiller:
                result = new Graphic_LinkedCornerFiller(subGraphic);
                break;

            case LinkDrawerType.Transmitter:
                result = new Graphic_LinkedTransmitter(subGraphic);
                break;

            case LinkDrawerType.TransmitterOverlay:
                result = new Graphic_LinkedTransmitterOverlay(subGraphic);
                break;

            default:
                throw new ArgumentException();
            }
            return(result);
        }
Esempio n. 2
0
        public override Graphic GetColoredVersion(Shader newShader, Color newColor, Color newColorTwo)
        {
            Graphic_Linked graphic_Linked = new Graphic_Linked(subGraphic.GetColoredVersion(newShader, newColor, newColorTwo));

            graphic_Linked.data = data;
            return(graphic_Linked);
        }