AGS.Editor.Components.BuildCommandsComponent.ScriptEditor_AttemptToEditScript C# (CSharp) Method

ScriptEditor_AttemptToEditScript() private method

private ScriptEditor_AttemptToEditScript ( bool &allowEdit ) : void
allowEdit bool
return void
        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;
            }
        }