Esempio n. 1
0
        public KeyframeAddAction(Layer l, Frameset f, uint targ, IEntityState start, IEntityState end, float interpolation)
        {
            LayerIndex = Program.ActiveProject.Layers.IndexOf(l);
            FramesetIndex = l.Framesets.IndexOf(f);

            Time = targ;
            State = start.Interpolate(end, interpolation);
        }
Esempio n. 2
0
 public LayerRemoveAction(Layer layer)
 {
     RemovedLayer = layer;
     RemovedLayerIndex = Program.ActiveProject.Layers.IndexOf(layer);
 }
Esempio n. 3
0
 public LayerMoveUpAction(Layer layer)
 {
     TargetLayerIndex = Program.ActiveProject.Layers.IndexOf(layer);
     PrevIndex = Program.ActiveProject.Layers.IndexOf(layer);
 }
Esempio n. 4
0
        public KeyframeRemoveAction(Layer layer, Frameset frameset, Keyframe frame)
        {
            LayerIndex = Program.ActiveProject.Layers.IndexOf(layer);
            FramesetIndex = layer.Framesets.IndexOf(frameset);

            RemovedKeyframe = frame;
            RemovedKeyframeIndex = frameset.Keyframes.IndexOf(RemovedKeyframe);
        }
Esempio n. 5
0
        public KeyframeMoveAction(Layer layer, Frameset frameset, Keyframe frame, uint time)
        {
            LayerIndex = Program.ActiveProject.Layers.IndexOf(layer);
            FramesetIndex = layer.Framesets.IndexOf(frameset);
            KeyframeIndex = frameset.Keyframes.IndexOf(frame);

            TargetKeyframe = frame;
            OriginalTime = time;
            NewTime = frame.Time;
        }
Esempio n. 6
0
 public KeyframeChangeInterpModeAction(Layer l, Frameset f, Keyframe frame, EntityInterpolationMode target)
 {
     LayerIndex = Program.ActiveProject.Layers.IndexOf(l);
     FramesetIndex = l.Framesets.IndexOf(f);
     KeyframeIndex = f.Keyframes.IndexOf(frame);
     TargetMode = target;
 }
Esempio n. 7
0
 public FramesetAddAction(Layer l)
 {
     LayerIndex = Program.ActiveProject.Layers.IndexOf(l);
     PrevSelectedIndex = Program.MainTimeline.selectedTime;
 }
Esempio n. 8
0
        public FramesetRemoveAction(Layer l, Frameset f)
        {
            LayerIndex = Program.ActiveProject.Layers.IndexOf(l);
            FramesetIndex = l.Framesets.IndexOf(f);

            RemovedFrameset = f;
        }
Esempio n. 9
0
        public FramesetMoveAction(Layer l, Frameset f, int startLocation, int endLocation)
        {
            LayerIndex = Program.ActiveProject.Layers.IndexOf(l);
            FramesetIndex = l.Framesets.IndexOf(f);

            startMoveLocation = startLocation;
            endMoveLocation = endLocation;
        }