示例#1
0
 protected virtual void SetAnimation(object cObject)
 {
     foreach (Timeline timeline1 in (Collection <Timeline>) this.Timelines)
     {
         Timeline timeline2 = Timeline.CreateTimeline(timeline1.FrameType, cObject as NodeObject);
         foreach (Frame orderedFrame in timeline1.OrderedFrames)
         {
             Frame frame = Frame.CreateFrame(orderedFrame);
             timeline2.Frames.Add(frame);
         }
     }
 }
示例#2
0
 protected virtual void SetAnimation(object cObject)
 {
     foreach (Timeline current in base.Timelines)
     {
         Timeline timeline = Timeline.CreateTimeline(current.FrameType, cObject as NodeObject);
         foreach (Frame current2 in current.OrderedFrames)
         {
             Frame item = Frame.CreateFrame(current2);
             timeline.Frames.Add(item);
         }
     }
 }
示例#3
0
        public static Timeline GetNodeTimeline(NodeObject node, string FrameType, bool autoCreate = true)
        {
            Timeline timeline = null;

            node.Timelines.ForEach(delegate(Timeline t)
            {
                if (t.FrameType == FrameType)
                {
                    timeline = t;
                }
            });
            if (node.Parent != null && timeline == null && autoCreate)
            {
                timeline = Timeline.CreateTimeline(FrameType, node);
            }
            return(timeline);
        }
示例#4
0
        public static Timeline GetNodeTimeline(NodeObject node, string FrameType, bool autoCreate = true)
        {
            Timeline timeline = (Timeline)null;

            node.Timelines.ForEach <Timeline>((Action <Timeline>)(t =>
            {
                if (!(t.FrameType == FrameType))
                {
                    return;
                }
                timeline = t;
            }));
            if (node.Parent != null && timeline == null && autoCreate)
            {
                timeline = Timeline.CreateTimeline(FrameType, node);
            }
            return(timeline);
        }