Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        // Delete event
        private void button_delete_event_Click(object sender, EventArgs e)
        {
            Form      parent = this.ParentForm;
            NPCEditor editor = parent as NPCEditor;
            uint      id     = editor.Id;

            db_scripts.scriptList[id].line.RemoveAt(eventid);
            editor.Redraw(id);
        }
Esempio n. 2
0
        public void ShowNewForm(uint id)
        {
            NPCEditor childForm = new NPCEditor(id, comboBox_script_type.SelectedIndex == 0, comboBox_script_type.SelectedItem.ToString().ToLower());
            childForm.MdiParent = this;
            if (comboBox_script_type.SelectedIndex == 0)
                childForm.Text = "NPC:  " + id;
            else
                childForm.Text = "SCRIPT:  " + id;

            childForm.Show();
        }
Esempio n. 3
0
        public void ShowNewForm(uint id)
        {
            NPCEditor childForm = new NPCEditor(id, comboBox_script_type.SelectedIndex == 0, comboBox_script_type.SelectedItem.ToString().ToLower());

            childForm.MdiParent = this;
            if (comboBox_script_type.SelectedIndex == 0)
            {
                childForm.Text = "NPC:  " + id;
            }
            else
            {
                childForm.Text = "SCRIPT:  " + id;
            }

            childForm.Show();
        }