コード例 #1
0
ファイル: ConductorTrack.cs プロジェクト: MiheevN/FlaxEngine
 /// <inheritdoc />
 public void OnKeyframesPaste(IKeyframesEditor editor, float?timeOffset, string[] datas, ref int index)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesPaste(editor, timeOffset, datas, ref index);
     }
 }
コード例 #2
0
 /// <inheritdoc />
 public new void OnKeyframesPaste(IKeyframesEditor editor, float?timeOffset, string[] datas, ref int index)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesPaste(editor, timeOffset, datas, ref index);
     }
 }
コード例 #3
0
ファイル: EventTrack.cs プロジェクト: FlaxEngine/FlaxEngine
 /// <inheritdoc />
 public new void OnKeyframesCopy(IKeyframesEditor editor, float?timeOffset, StringBuilder data)
 {
     if (Events != null && Events.Visible)
     {
         Events.OnKeyframesCopy(editor, timeOffset, data);
     }
 }
コード例 #4
0
ファイル: EventTrack.cs プロジェクト: FlaxEngine/FlaxEngine
 /// <inheritdoc />
 public new void OnKeyframesPaste(IKeyframesEditor editor, float?timeOffset, string[] datas, ref int index)
 {
     if (Events != null && Events.Visible)
     {
         Events.OnKeyframesPaste(editor, timeOffset, datas, ref index);
     }
 }
コード例 #5
0
 /// <inheritdoc />
 public new void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Vector2 location, bool start, bool end)
 {
     if (Keyframes != null && Keyframes.Visible)
     {
         Keyframes.OnKeyframesMove(editor, control, location, start, end);
     }
 }
コード例 #6
0
ファイル: EventTrack.cs プロジェクト: FlaxEngine/FlaxEngine
 /// <inheritdoc />
 public new void OnKeyframesDelete(IKeyframesEditor editor)
 {
     if (Events != null && Events.Visible)
     {
         Events.OnKeyframesDelete(editor);
     }
 }
コード例 #7
0
ファイル: ConductorTrack.cs プロジェクト: MiheevN/FlaxEngine
 /// <inheritdoc />
 public void OnKeyframesCopy(IKeyframesEditor editor, float?timeOffset, StringBuilder data)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesCopy(editor, timeOffset, data);
     }
 }
コード例 #8
0
        public static void Paste(IKeyframesEditor editor, float?timeOffset = null)
        {
            var data = Clipboard.Text;

            if (string.IsNullOrEmpty(data))
            {
                return;
            }
            var datas = data.Split(new[] { CopyPrefix }, StringSplitOptions.RemoveEmptyEntries);

            if (datas.Length == 0)
            {
                return;
            }
            if (editor.KeyframesEditorContext != null)
            {
                editor.KeyframesEditorContext.OnKeyframesDeselect(editor);
            }
            else
            {
                editor.OnKeyframesDeselect(editor);
            }
            int index = -1;

            if (editor.KeyframesEditorContext != null)
            {
                editor.KeyframesEditorContext.OnKeyframesPaste(editor, timeOffset, datas, ref index);
            }
            else
            {
                editor.OnKeyframesPaste(editor, timeOffset, datas, ref index);
            }
        }
コード例 #9
0
ファイル: ConductorTrack.cs プロジェクト: MiheevN/FlaxEngine
 /// <inheritdoc />
 public void OnKeyframesDelete(IKeyframesEditor editor)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesDelete(editor);
     }
 }
コード例 #10
0
ファイル: ConductorTrack.cs プロジェクト: MiheevN/FlaxEngine
 /// <inheritdoc />
 public void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Vector2 location, bool start, bool end)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesMove(editor, control, location, start, end);
     }
 }
コード例 #11
0
 /// <inheritdoc />
 public new void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesSelection(editor, control, selection);
     }
 }
コード例 #12
0
ファイル: ConductorTrack.cs プロジェクト: MiheevN/FlaxEngine
 /// <inheritdoc />
 public void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesSelection(editor, control, selection);
     }
 }
コード例 #13
0
 /// <inheritdoc />
 public new void OnKeyframesDelete(IKeyframesEditor editor)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesDelete(editor);
     }
 }
コード例 #14
0
 /// <inheritdoc />
 public new void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Float2 location, bool start, bool end)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesMove(editor, control, location, start, end);
     }
 }
コード例 #15
0
 /// <inheritdoc />
 public new void OnKeyframesCopy(IKeyframesEditor editor, float?timeOffset, StringBuilder data)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesCopy(editor, timeOffset, data);
     }
 }
コード例 #16
0
 /// <inheritdoc />
 public new void OnKeyframesDelete(IKeyframesEditor editor)
 {
     if (Keyframes != null && Keyframes.Visible)
     {
         Keyframes.OnKeyframesDelete(editor);
     }
 }
コード例 #17
0
ファイル: EventTrack.cs プロジェクト: FlaxEngine/FlaxEngine
 /// <inheritdoc />
 public new void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection)
 {
     if (Events != null && Events.Visible)
     {
         Events.OnKeyframesSelection(editor, control, selection);
     }
 }
コード例 #18
0
        public static void Copy(IKeyframesEditor editor, float?timeOffset = null)
        {
            var data = new StringBuilder();

            if (editor.KeyframesEditorContext != null)
            {
                editor.KeyframesEditorContext.OnKeyframesCopy(editor, timeOffset, data);
            }
            else
            {
                editor.OnKeyframesCopy(editor, timeOffset, data);
            }
            Clipboard.Text = data.ToString();
        }
コード例 #19
0
 /// <inheritdoc />
 public abstract void OnKeyframesDeselect(IKeyframesEditor editor);
コード例 #20
0
 /// <inheritdoc />
 public abstract void OnKeyframesDelete(IKeyframesEditor editor);
コード例 #21
0
 /// <inheritdoc />
 public abstract void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Vector2 location, bool start, bool end);
コード例 #22
0
 /// <inheritdoc />
 public abstract void OnKeyframesCopy(IKeyframesEditor editor, float?timeOffset, System.Text.StringBuilder data);
コード例 #23
0
 /// <inheritdoc />
 public abstract void OnKeyframesPaste(IKeyframesEditor editor, float?timeOffset, string[] datas, ref int index);
コード例 #24
0
 /// <inheritdoc />
 public abstract void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection);