private void collisionExitButton_Click(object sender, EventArgs e) { // Opens the Object Collision Exit Event data in the Code Editor this.onCollisionExit = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Collision Exit", IDEComponent.ComponentType.Object, this.onCollisionExit, this.id, "collisionExit"); }
//Destroy button click event private void destroyButton_Click(object sender, EventArgs e) { //Opens the Object Destroy Event data in the Code Editor this.onDestroy = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Destroy", IDEComponent.ComponentType.Object, this.onDestroy, this.id, "destroy"); }
//Mouse Released button click event private void mousereleasedButton_Click(object sender, EventArgs e) { //Opens the Object Mouse Released Event data in the Code Editor this.onMouseReleased = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Mouse Released", IDEComponent.ComponentType.Object, this.onMouseReleased, this.id, "mouseReleased"); }
//Key Pressed button click event private void keypressedButton_Click(object sender, EventArgs e) { //Opens the Object Key Pressed Event data in the Code Editor this.onKeyPressed = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Key Pressed", IDEComponent.ComponentType.Object, this.onKeyPressed, this.id, "keyPressed"); }
//Draw button click event private void drawButton_Click(object sender, EventArgs e) { //Opens the Object Draw Event data in the Code Editor this.onDraw = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Draw", IDEComponent.ComponentType.Object, this.onDraw, this.id, "draw"); }
//Update button click event private void updateButton_Click(object sender, EventArgs e) { //Opens the Object Update Event data in the Code Editor this.onUpdate = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Update", IDEComponent.ComponentType.Object, this.onUpdate, this.id, "update"); }