private void ReportErrorsIfAppropriate(CompileMessages errors)
{
if (errors.HasErrors)
{
if (_preferences.MessageBoxOnCompileErrors != MessageBoxOnCompile.Never)
{
Factory.GUIController.ShowMessage("There were compilation errors. See the output window for details.", MessageBoxIcon.Warning);
}
Factory.GUIController.ShowCuppit("There was a problem creating your game. Look in the output window at the bottom of the screen to see what the error is. If it's a script error, you can double-click on it to be taken to that place in the script.", "Script errors");
}
else if (errors.Count > 0)
{
if (_preferences.MessageBoxOnCompileErrors == MessageBoxOnCompile.WarningsAndErrors)
{
Factory.GUIController.ShowMessage("There were warnings compiling your game. See the output window for details.", MessageBoxIcon.Warning);
}
}
}