From 2be483667acf9a065ced67913954c2c698673c8d Mon Sep 17 00:00:00 2001 From: in0finite Date: Sat, 22 Jan 2022 00:25:31 +0100 Subject: [PATCH] display dialog when loading finishes --- Assets/Scripts/Editor/EditorLoader.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/Scripts/Editor/EditorLoader.cs b/Assets/Scripts/Editor/EditorLoader.cs index 62939def..59c5855c 100644 --- a/Assets/Scripts/Editor/EditorLoader.cs +++ b/Assets/Scripts/Editor/EditorLoader.cs @@ -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")]