Add context menu for the timeline tracks and change signature for media context menu

This commit is contained in:
Wojtek Figat
2022-01-07 21:57:29 +01:00
parent 192af7ec14
commit a2487c02d9
5 changed files with 30 additions and 6 deletions

View File

@@ -1028,6 +1028,15 @@ namespace FlaxEditor.GUI.Timeline
return true;
}
/// <summary>
/// Called when showing timeline context menu to the user. Can be used to add custom buttons.
/// </summary>
/// <param name="menu">The menu.</param>
/// <param name="time">The time (in seconds) at which context menu is shown (user clicked on a timeline).</param>
public virtual void OnTimelineContextMenu(ContextMenu.ContextMenu menu, float time)
{
}
/// <summary>
/// Called when context menu is being prepared to show. Can be used to add custom options.
/// </summary>