private void button4_Click(object sender, EventArgs e)
        {
            switch (tabControl1.SelectedIndex)
            {
            case 0:
                if (sbc != default(ScriptBoolCheck))
                {
                    scriptBaseForm.AddLine("@TIF" + "_" + sbc.toCastString() + "_" + numericUpDown1.Value + "_" + ScriptProcessor.TIFTypes.Bool.ToString());
                }


                break;

            case 1:
                if (listBox3.SelectedIndex != -1)
                {
                    scriptBaseForm.AddLine("@TIF" + "_" + CID.Text + "_" + numericUpDown1.Value + "_" + ScriptProcessor.TIFTypes.PlayerFacing.ToString());
                }
                break;

            case 2:
                if (listBox4.SelectedIndex != -1 && listBox5.SelectedIndex != -1)
                {
                    scriptBaseForm.AddLine("@TIF" + "_" + listBox4.SelectedItem + "_" + listBox5.SelectedItem + "_" + numericUpDown1.Value + "_" + ScriptProcessor.TIFTypes.Time.ToString());
                }
                break;
            }
            Hide();
        }
        private void button4_Click(object sender, EventArgs e)
        {
            bool bHasThatTheTag = scriptBaseForm.script.scriptContent.Find(l => l.Equals("@THE_" + numericUpDown2.Value, StringComparison.OrdinalIgnoreCase)) == default(String) ? false : true;

            if (!bHasThatTheTag)
            {
                scriptBaseForm.AddLine("@THE_" + numericUpDown2.Value);
            }
            scriptBaseForm.AddLine("@TRC" + "_" + numericUpDown1.Value + "_" + numericUpDown2.Value);

            Close();
        }
        private void button4_Click(object sender, EventArgs e)
        {
            MapBuilder.gcDB.AddTextCollection(gt);
            String temp = "@MSG_" + SID.Text + "_" + CLID.Text + "_" + CRID.Text + "_" + EL.Text + "_" + ER.Text + "_" + gt.textID;

            scriptBaseForm.AddLine(temp);
            Close();
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         ScriptBool sb = (ScriptBool)listBox1.SelectedItem;
         scriptBaseForm.AddLine("@CSB" + "_" + sb.boolID + "_" + listBox2.SelectedIndex + "_" + checkBox1.Checked.ToString() + "_" + ScriptProcessor.TIFTypes.Bool.ToString());
         Close();
     }
 }
Пример #5
0
        private void button4_Click(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex == -1)
            {
                TI.Text = "0";
            }

            scriptBaseForm.AddLine("@TSP" + "_" + TI.Text);
            Hide();
        }
Пример #6
0
        private void button4_Click(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex == -1)
            {
                LI.Text = "0";
            }

            scriptBaseForm.AddLine("@TRE" + "_" + numericUpDown1.Value);
            Hide();
        }
Пример #7
0
        private void button1_Click(object sender, EventArgs e)
        {
            switch (tabControl1.SelectedIndex)
            {
            case 0:
                if (listBox1.SelectedIndex != -1)
                {
                    sbf.AddLine("@DLH" + "_" + listBox1.SelectedItem.ToString());
                }

                break;

            case 1:
                if (listBox2.SelectedIndex != -1 && listBox3.SelectedIndex != -1)
                {
                    sbf.AddLine("@DLH" + "_" + listBox2.SelectedItem.ToString() + "_" + listBox3.SelectedItem.ToString());
                }

                break;
            }
            Hide();
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         ScriptBool temp = listBox1.SelectedItem as ScriptBool;
         if (temp.choices().Count != 0)
         {
             scriptBaseForm.AddLine("@MCT" + "_" + temp.boolID);
             Close();
         }
         else
         {
             MessageBox.Show("Soft error! Selected scriptbool contains no choices.");
         }
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     scriptBaseForm.AddLine("@THE_" + numericUpDown2.Value);
     Close();
 }
 private void button4_Click(object sender, EventArgs e)
 {
     scriptBaseForm.AddLine("@TSM" + "_" + SMID.Text + "_" + SID.Text);
     Hide();
 }
 private void button1_Click(object sender, EventArgs e)
 {
     scriptBaseForm.AddLine("@TLH" + "_" + fn + "_" + functionName);
     Close();
 }
Пример #12
0
 private void button1_Click(object sender, EventArgs e)
 {
     scriptBaseForm.AddLine(richTextBox1.Text);
     Hide();
 }
Пример #13
0
 private void button1_Click(object sender, EventArgs e)
 {
     scriptBaseForm.AddLine("@CTM");
     Close();
 }
 private void button1_Click(object sender, EventArgs e)
 {
     scriptBaseForm.AddLine("@DST" + "_" + numericUpDown1.Value + "_" + numericUpDown2.Value + "_" + checkBox1.Checked);
     Close();
 }