示例#1
0
        protected override VisibleTimeline DoLoadCopy(BinaryReader BR, ContentManager Content, AnimationClass.AnimationLayer ActiveLayer)
        {
            UITimeline Copy = new UITimeline(BR, Content);

            Copy.Owner = Owner;
            return(Copy);
        }
示例#2
0
        public override Timeline Copy(AnimationClass.AnimationLayer ActiveLayer)
        {
            UITimeline NewUITimeline = new UITimeline(Owner, Name);

            NewUITimeline.UpdateFrom(this, ActiveLayer);

            return(NewUITimeline);
        }
示例#3
0
        public override List <VisibleTimeline> CreateNewEditorItem(AnimationClass ActiveAnimation, AnimationClass.AnimationLayer ActiveLayer, int KeyFrame, System.Drawing.Point MousePosition)
        {
            List <VisibleTimeline> ReturnValue = new List <VisibleTimeline>();

            UITimeline NewUITimeline = new UITimeline(Owner, ActiveAnimation.Content);

            NewUITimeline.Position   = new Vector2(0, 0);
            NewUITimeline.SpawnFrame = KeyFrame;
            NewUITimeline.DeathFrame = KeyFrame + 10;
            NewUITimeline.IsUsed     = true;//Disable the spawner as we spawn the Marker manually.
            NewUITimeline.Add(KeyFrame,
                              new VisibleAnimationObjectKeyFrame(new Vector2(NewUITimeline.Position.X, NewUITimeline.Position.Y),
                                                                 true, -1));

            ReturnValue.Add(NewUITimeline);

            return(ReturnValue);
        }