mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 12:03:04 +00:00
display dialog when loading finishes
This commit is contained in:
parent
3a9399b616
commit
2be483667a
1 changed files with 5 additions and 0 deletions
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue