Exemple #1
0
        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);
        }
Exemple #2
0
 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");
 }
Exemple #3
0
 //"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");
 }
Exemple #4
0
 //"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");
 }
Exemple #5
0
 //"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");
 }
Exemple #6
0
 //"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");
 }
Exemple #7
0
 //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);
 }
Exemple #8
0
 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");
 }
Exemple #9
0
 //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");
 }
Exemple #10
0
 //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");
 }