Add keyframes editor to proxy keyframes from subtracks on object track

#519
This commit is contained in:
Wojtek Figat
2021-09-03 12:32:33 +02:00
parent 6dcc9f85c6
commit d19d0ef0e5
21 changed files with 648 additions and 49 deletions

View File

@@ -1,5 +1,7 @@
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using System;
using System.Collections.Generic;
using FlaxEngine;
using FlaxEngine.GUI;
@@ -62,5 +64,17 @@ namespace FlaxEditor.GUI
/// <param name="datas">The pasted data text.</param>
/// <param name="index">The counter for the current data index. Set to -1 until the calling editor starts paste operation.</param>
void OnKeyframesPaste(IKeyframesEditor editor, float? timeOffset, string[] datas, ref int index);
/// <summary>
/// Called when collecting keyframes from the context.
/// </summary>
/// <param name="get">The getter function to call for all keyframes. Args are: track name, keyframe time, keyframe object.</param>
void OnKeyframesGet(Action<string, float, object> get);
/// <summary>
/// Called when setting keyframes data (opposite to <see cref="OnKeyframesGet"/>).
/// </summary>
/// <param name="keyframes">The list of keyframes, null for empty list. Keyframe data is: time and keyframe object.</param>
void OnKeyframesSet(List<KeyValuePair<float, object>> keyframes);
}
}