private void CustomButton_DoubleClick(object sender, EventArgs e) { CustomButton b = (CustomButton)sender; b.Component.data = CodeEditor.Open("Code Editor: " + UIs.uis[form.id].name + " - " + UI.GetComponentNameFromScript(b.Component.data), IDEComponent.ComponentType.UIComponent, b.Component.data, new int[] { b.Component.id, form.id }, null); }
private void destroyButton_Click(object sender, EventArgs e) { this.onDestroy = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Destroy", IDEComponent.ComponentType.UI, this.onDestroy, this.id, "destroy"); }
//"Key Released" button click event private void keyreleasedButton_Click(object sender, EventArgs e) { //Opens the UI Key Released Event data in the Code Editor this.onKeyReleased = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Key Released", IDEComponent.ComponentType.UI, this.onKeyReleased, this.id, "keyReleased"); }
//"Draw" button click event private void drawButton_Click(object sender, EventArgs e) { //Opens the UI Draw Event data in the Code Editor this.onDraw = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Draw", IDEComponent.ComponentType.UI, this.onDraw, this.id, "draw"); }
//"Update" button click event private void updateButton_Click(object sender, EventArgs e) { //Opens the UI Update Event data in the Code Editor this.onUpdate = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Update", IDEComponent.ComponentType.UI, this.onUpdate, this.id, "update"); }
//"Create" button click event private void createButton_Click(object sender, EventArgs e) { //Opens the Room Create Event data in the Code Editor this.onCreate = CodeEditor.Open("Code Editor: " + nameBox.Text + " - Create", IDEComponent.ComponentType.Room, this.onCreate, this.id, "create"); }
//Edit button click private void editButton_Click(object sender, EventArgs e) { //Opens this script data in the Code Editor this.data = CodeEditor.Open("Code Editor: " + nameBox.Text, IDEComponent.ComponentType.Script, this.data, this.id, null); }
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"); }