private void btnPlayClicked(object sender, EventArgs e) { //if ( Parser == null || Parser.Script != txtScriptEntry.Text ) Parser = new EUOInterpreter(txtScriptEntry.Text); Parser.Run(); }
private void btnPlayClicked(object sender, EventArgs e) { if (Interpreter == null || Interpreter.Script != txtScriptEntry.Text) { Interpreter = new EUOInterpreter(txtScriptEntry.Text); UpdateAST(); } if (Interpreter.Running && Interpreter.Paused) { Interpreter.Paused = false; } else if (!Interpreter.Running) { Interpreter.Run(); } btnPlay.Enabled = false; btnStop.Enabled = true; btnPause.Enabled = true; txtDebug.Text = "Running..."; }