public override void OnMarkerTimelineDeath(MarkerTimeline RemovedMarker) { base.OnMarkerTimelineDeath(RemovedMarker); if (DicActiveAnimationObject.ContainsKey(RemovedMarker.Name)) { DicActiveAnimationObject[RemovedMarker.Name] = null; } }
public override void OnMarkerTimelineDeath(MarkerTimeline RemovedMarker) { base.OnMarkerTimelineDeath(RemovedMarker); if (DicInheritedObject.ContainsKey(RemovedMarker.Name)) { DicInheritedObject[RemovedMarker.Name] = null; } }
public override void OnMarkerTimelineSpawn(AnimationLayer ActiveLayer, MarkerTimeline ActiveMarker) { base.OnMarkerTimelineSpawn(ActiveLayer, ActiveMarker); if (DicActiveAnimationObject.ContainsKey(ActiveMarker.Name)) { DicActiveAnimationObject[ActiveMarker.Name] = ActiveMarker; } else { DicActiveAnimationObject.Add(ActiveMarker.Name, ActiveMarker); } }
public override Timeline Copy(AnimationClass.AnimationLayer ActiveLayer) { MarkerTimeline NewSetMarkerEvent = new MarkerTimeline(); if (AnimationMarker != null) { NewSetMarkerEvent.AnimationMarker = AnimationMarker.Copy(); } NewSetMarkerEvent.BitmapName = BitmapName; NewSetMarkerEvent._MarkerType = _MarkerType; NewSetMarkerEvent.Sprite = Sprite; 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>(); MarkerHelper NewSpawner = new MarkerHelper(); if (NewSpawner.ShowDialog() == System.Windows.Forms.DialogResult.OK) { MarkerTimeline NewSetMarkerEvent = NewSpawner.MarkerViewer.ActiveMarker; NewSetMarkerEvent.Position = new Vector2(535, 170); NewSetMarkerEvent.SpawnFrame = KeyFrame; NewSetMarkerEvent.DeathFrame = KeyFrame + 10; NewSetMarkerEvent.IsUsed = true;//Disable the spawner as we spawn the Marker manually. NewSetMarkerEvent.Add(KeyFrame, new VisibleAnimationObjectKeyFrame(new Vector2(NewSpawner.MarkerViewer.ActiveMarker.Position.X, NewSpawner.MarkerViewer.ActiveMarker.Position.Y), true, -1)); ReturnValue.Add(NewSetMarkerEvent); } return(ReturnValue); }
public virtual void OnMarkerTimelineDeath(MarkerTimeline RemovedMarker) { }
public virtual void OnMarkerTimelineSpawn(AnimationLayer ActiveLayer, MarkerTimeline ActiveMarker) { ActiveLayer.ListActiveMarker.Add(ActiveMarker); }
public MarkerHelper(MarkerTimeline ActiveMarker) { InitializeComponent(); MarkerViewer.ActiveMarker = (MarkerTimeline)ActiveMarker.Copy(null); }