Changed interface for script compliation error
This commit is contained in:
@@ -39,7 +39,7 @@ namespace FlaxEditor.Progress.Handlers
|
||||
OnUpdate(0, "Starting building game..");
|
||||
break;
|
||||
case GameCooker.EventType.BuildFailed:
|
||||
OnFail();
|
||||
OnEnd();
|
||||
break;
|
||||
case GameCooker.EventType.BuildDone:
|
||||
OnEnd();
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace FlaxEditor.Progress.Handlers
|
||||
// Link for events
|
||||
ScriptsBuilder.CompilationBegin += OnStart;
|
||||
ScriptsBuilder.CompilationSuccess += OnEnd;
|
||||
ScriptsBuilder.CompilationFailed += OnFail;
|
||||
ScriptsBuilder.CompilationFailed += OnCompilationFail;
|
||||
ScriptsBuilder.CompilationStarted += () => OnUpdate(0.2f, "Compiling scripts...");
|
||||
ScriptsBuilder.ScriptsReloadCalled += () => OnUpdate(0.8f, "Reloading scripts...");
|
||||
ScriptsBuilder.ScriptsReloadBegin += OnScriptsReloadBegin;
|
||||
@@ -57,5 +57,13 @@ namespace FlaxEditor.Progress.Handlers
|
||||
|
||||
OnUpdate(0, "Starting scripts compilation...");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when scripts compilation fails
|
||||
/// </summary>
|
||||
private void OnCompilationFail()
|
||||
{
|
||||
OnFail("Scripts Compilation Failed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user