public override Timeline Copy(AnimationClass.AnimationLayer ActiveLayer) { SceneObjectTimeline NewSetMarkerEvent = new SceneObjectTimeline(SceneObject); NewSetMarkerEvent.UpdateFrom(this, ActiveLayer); return(NewSetMarkerEvent); }
public override List <VisibleTimeline> CreateNewEditorItem(AnimationClass ActiveAnimation, AnimationClass.AnimationLayer ActiveLayer, int KeyFrame, System.Drawing.Point MousePosition) { List <VisibleTimeline> ReturnValue = new List <VisibleTimeline>(); SceneObjectTimeline NewDamageTimeline = new SceneObjectTimeline(SceneObject); NewDamageTimeline.Position = new Vector2(535, 170); NewDamageTimeline.SpawnFrame = KeyFrame; NewDamageTimeline.DeathFrame = KeyFrame + 10; NewDamageTimeline.IsUsed = true;//Disable the spawner as we spawn the Timeline manually. NewDamageTimeline.Add(KeyFrame, new VisibleAnimationObjectKeyFrame(new Vector2(NewDamageTimeline.Position.X, NewDamageTimeline.Position.Y), true, -1)); ReturnValue.Add(NewDamageTimeline); return(ReturnValue); }