Ejemplo n.º 1
0
        public Trigger(string triggerType, int starttime, int endtime, int i = -1)
        {
            type             = "T";
            indexT           = i;
            this.startTime   = starttime;
            this.endTime     = endtime;
            this.triggertype = triggerType;

            Move = new Move(); if (i != -1)
            {
                Move.indexT = i;
            }
            MoveX = new MoveX(); if (i != -1)
            {
                MoveX.indexT = i;
            }
            MoveY = new MoveY(); if (i != -1)
            {
                MoveY.indexT = i;
            }
            Scale = new Scale(); if (i != -1)
            {
                Scale.indexT = i;
            }
            Fade = new Fade(); if (i != -1)
            {
                Fade.indexT = i;
            }
            Rotate = new Rotate(); if (i != -1)
            {
                Rotate.indexT = i;
            }
            Vector = new Vector(); if (i != -1)
            {
                Vector.indexT = i;
            }
            Color = new Color(); if (i != -1)
            {
                Color.indexT = i;
            }
            Parameter = new Parameter(); if (i != -1)
            {
                Parameter.indexT = i;
            }
            BuildParams();
        }
Ejemplo n.º 2
0
        public Loop(int starttime, int times, int i = -1)
        {
            type           = "L";
            indexL         = i;
            this.startTime = starttime;
            this.times     = times;

            Move = new Move(); if (i != -1)
            {
                Move.indexL = i;
            }
            MoveX = new MoveX(); if (i != -1)
            {
                MoveX.indexL = i;
            }
            MoveY = new MoveY(); if (i != -1)
            {
                MoveY.indexL = i;
            }
            Scale = new Scale(); if (i != -1)
            {
                Scale.indexL = i;
            }
            Fade = new Fade(); if (i != -1)
            {
                Fade.indexL = i;
            }
            Rotate = new Rotate(); if (i != -1)
            {
                Rotate.indexL = i;
            }
            Vector = new Vector(); if (i != -1)
            {
                Vector.indexL = i;
            }
            Color = new Color(); if (i != -1)
            {
                Color.indexL = i;
            }
            Parameter = new Parameter(); if (i != -1)
            {
                Parameter.indexL = i;
            }
            BuildParams();
        }