Add Loading text info for particle system and animation timelines

This commit is contained in:
Wojtek Figat
2022-01-06 14:40:27 +01:00
parent f4bbf0e348
commit 751916151a
2 changed files with 4 additions and 0 deletions

View File

@@ -254,6 +254,7 @@ namespace FlaxEditor.Windows.Assets
Enabled = false
};
_timeline.Modified += MarkAsEdited;
_timeline.SetNoTracksText("Loading...");
// Asset properties
_propertiesPresenter = new CustomEditorPresenter(null);
@@ -361,6 +362,7 @@ namespace FlaxEditor.Windows.Assets
_timeline.Load(_asset);
_undo.Clear();
_timeline.Enabled = true;
_timeline.SetNoTracksText(null);
ClearEditedFlag();
}
}

View File

@@ -347,6 +347,7 @@ namespace FlaxEditor.Windows.Assets
};
_timeline.Modified += OnTimelineModified;
_timeline.SelectionChanged += OnTimelineSelectionChanged;
_timeline.SetNoTracksText("Loading...");
// Properties editor
var propertiesEditor = new CustomEditorPresenter(_undo, string.Empty);
@@ -527,6 +528,7 @@ namespace FlaxEditor.Windows.Assets
// Setup
_undo.Clear();
_timeline.Enabled = true;
_timeline.SetNoTracksText(null);
_propertiesEditor.Select(new GeneralProxy(this));
ClearEditedFlag();
}