Add loading info text when opening scene animation window

This commit is contained in:
Wojtek Figat
2021-07-30 15:04:26 +02:00
parent 25487c17e3
commit e1cac0b779
2 changed files with 14 additions and 0 deletions

View File

@@ -1930,6 +1930,18 @@ namespace FlaxEditor.GUI.Timeline
}
}
/// <summary>
/// Sets the text for the No Tracks UI.
/// </summary>
/// <param name="text">The text.</param>
public void SetNoTracksText(string text)
{
if (_noTracksLabel != null)
{
_noTracksLabel.Text = text ?? "No tracks";
}
}
/// <inheritdoc />
protected override void PerformLayoutBeforeChildren()
{

View File

@@ -632,6 +632,7 @@ namespace FlaxEditor.Windows.Assets
};
_timeline.Modified += OnTimelineModified;
_timeline.PlayerChanged += OnTimelinePlayerChanged;
_timeline.SetNoTracksText("Loading...");
// Toolstrip
_saveButton = (ToolStripButton)_toolstrip.AddButton(Editor.Icons.Save64, Save).LinkTooltip("Save");
@@ -857,6 +858,7 @@ namespace FlaxEditor.Windows.Assets
// Setup
_undo.Clear();
_timeline.SetNoTracksText(null);
_timeline.Enabled = true;
ClearEditedFlag();
}