private void ScriptEditor_AttemptToEditScript(ref bool allowEdit)
{
if (_testGameInProgress)
{
_guiController.ShowMessage("You cannot edit scripts while the game is being tested. Close the game first.", MessageBoxIcon.Warning);
allowEdit = false;
}
}