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

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

            NewENTimeline.UpdateFrom(this, ActiveLayer);

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

            ENTimeline NewENTimeline = new ENTimeline(Owner, ActiveAnimation.Content);

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

            ReturnValue.Add(NewENTimeline);

            return(ReturnValue);
        }