update splash screen status

This commit is contained in:
Michael Becker 2020-08-21 12:05:33 -04:00
parent 0ee168a5a9
commit da373d48e7
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -162,10 +162,10 @@ namespace UniversalEditor.UserInterface
}
#endregion
Engine.CurrentEngine.UpdateSplashScreenStatus("Loading object models...");
UpdateSplashScreenStatus("Loading object models...");
UniversalEditor.Common.Reflection.GetAvailableObjectModels();
Engine.CurrentEngine.UpdateSplashScreenStatus("Loading data formats...");
UpdateSplashScreenStatus("Loading data formats...");
UniversalEditor.Common.Reflection.GetAvailableDataFormats();
// Initialize Recent File Manager
@ -1015,8 +1015,14 @@ namespace UniversalEditor.UserInterface
private Perspective.PerspectiveCollection mvarPerspectives = new Perspective.PerspectiveCollection();
public Perspective.PerspectiveCollection Perspectives { get { return mvarPerspectives; } }
protected internal virtual void UpdateSplashScreenStatus(string message, int progressValue = -1, int progressMinimum = 0, int progressMaximum = 100)
protected internal virtual void UpdateSplashScreenStatus(string message)
{
Application.UpdateSplashScreenStatus(message);
Console.WriteLine(message);
}
protected internal virtual void UpdateSplashScreenStatus(string message, int progressValue = 0, int progressMinimum = 0, int progressMaximum = 100)
{
Application.UpdateSplashScreenStatus(message, progressValue, progressMinimum, progressMaximum);
Console.WriteLine(message);
}