display dialog when loading finishes

This commit is contained in:
in0finite 2022-01-22 00:25:31 +01:00
parent 3a9399b616
commit 2be483667a

View file

@ -38,6 +38,11 @@ namespace SanAndreasUnity.Editor
static void OnLoadingFinished()
{
EditorUtility.ClearProgressBar();
if (Loader.HasLoaded)
EditorUtility.DisplayDialog("", "Successfully loaded game data.", "Ok");
else
EditorUtility.DisplayDialog("", "Error in loading game data. Check console for more information.", "Ok");
}
[MenuItem(EditorCore.MenuName + "/" + "Load game data")]