Ejemplo n.º 1
0
        public override bool Execute(ActionContext context)
        {
            TimelineEditor.clipboard.Clear();

            var clips = context.clips;

            if (clips.Any())
            {
                clips.Invoke <CopyClipsToClipboard>();
            }
            var markers = context.markers;

            if (markers.Any())
            {
                markers.Invoke <CopyMarkersToClipboard>();
            }
            var tracks = context.tracks;

            if (tracks.Any())
            {
                CopyTracksToClipboard.Do(tracks.ToArray());
            }

            return(true);
        }
        public override bool Execute(WindowState state)
        {
            TimelineEditor.clipboard.Clear();

            var clips = SelectionManager.SelectedClips().ToArray();

            if (clips.Length > 0)
            {
                ItemAction <TimelineClip> .Invoke <CopyClipsToClipboard>(state, clips);
            }
            var markers = SelectionManager.SelectedMarkers().ToArray();

            if (markers.Length > 0)
            {
                ItemAction <IMarker> .Invoke <CopyMarkersToClipboard>(state, markers);
            }
            var tracks = SelectionManager.SelectedTracks().ToArray();

            if (tracks.Length > 0)
            {
                CopyTracksToClipboard.Do(state, tracks);
            }

            return(true);
        }
Ejemplo n.º 3
0
 public override bool Execute(TimelineWindow.TimelineState state)
 {
     Clipboard.Clear();
     TimelineClip[] array = SelectionManager.SelectedItems <TimelineClip>().ToArray <TimelineClip>();
     if (array.Length > 0)
     {
         CopyClipsToClipboard.Do(state, array);
     }
     TimelineMarker[] array2 = SelectionManager.SelectedItems <TimelineMarker>().ToArray <TimelineMarker>();
     if (array2.Length > 0)
     {
         CopyMarkersToClipboard.Do(state, array2);
     }
     TrackAsset[] array3 = SelectionManager.SelectedTracks().ToArray <TrackAsset>();
     if (array3.Length > 0)
     {
         CopyTracksToClipboard.Do(state, array3);
     }
     return(true);
 }
        public static bool Do(TimelineWindow.TimelineState state, TrackAsset[] tracks)
        {
            CopyTracksToClipboard copyTracksToClipboard = new CopyTracksToClipboard();

            return(copyTracksToClipboard.Execute(state, tracks));
        }
        public static bool Do(WindowState state, TrackAsset[] tracks)
        {
            var action = new CopyTracksToClipboard();

            return(action.Execute(state, tracks));
        }
Ejemplo n.º 6
0
        public static bool Do(TrackAsset[] tracks)
        {
            var action = new CopyTracksToClipboard();

            return(action.Execute(tracks));
        }