private void CmdSave_Click(object sender, EventArgs e)
 {
     Katsuo    = KatsuoBox.Checked;
     Serenity  = SerenityBox.Checked;
     GaleBurst = GaleBurstBox.Checked;
     MessageBox.Show("Settings saved.", "CloudMagic", MessageBoxButtons.OK, MessageBoxIcon.Information);
     SettingsForm.Close();
 }
 private void CmdSave_Click(object sender, EventArgs e)
 {
     SeraphimBoss      = SeraphimBox.Checked;
     HotPBoss          = HotPBox.Checked;
     BlessedHammerBoss = BlessedHammerBox.Checked;
     MessageBox.Show("Settings saved", "PixelMagic", MessageBoxButtons.OK, MessageBoxIcon.Information);
     SettingsForm.Close();
 }
 private void CmdSave_Click(object sender, EventArgs e)
 {
     Odr               = OdrBox.Checked;
     BossToggle        = BossToggleBox.Checked;
     Shadowflame       = ShadowflameBox.Checked;
     Implosion         = ImplosionBox.Checked;
     GrimoireOfService = GrimoireOfServiceBox.Checked;
     SummonDarkglare   = SummonDarkglareBox.Checked;
     Demonbolt         = DemonboltBox.Checked;
     MessageBox.Show("Settings saved.", "CloudMagic", MessageBoxButtons.OK, MessageBoxIcon.Information);
     SettingsForm.Close();
 }
Ejemplo n.º 4
0
 private void CmdSave_Click(object sender, EventArgs e)
 {
     Barrage      = BarrageBox.Checked;
     Crow         = CrowBox.Checked;
     Exhil        = ExhilBox.Checked;
     Death        = DeathBox.Checked;
     Turtle       = TurtleBox.Checked;
     dpscooldowns = dpscooldownsBox.Checked;
     CounterShot  = CounterShotBox.Checked;
     MessageBox.Show("Settings saved", "PixelMagic", MessageBoxButtons.OK, MessageBoxIcon.Information);
     SettingsForm.Close();
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Closes any open forms before closing itself
        /// </summary>
        /// <param name="e">Not used</param>
        protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            if (_settingsForm != null)
            {
                _settingsForm.Close();
            }

            if (_listener != null)
            {
                _listener.Stop();
            }

            base.OnClosing(e);
        }
Ejemplo n.º 6
0
        private void CmdSave_Click(object sender, EventArgs e)
        {
            Bloodtalons      = BloodtalonsBox.Checked;
            ElunesGuidance   = ElunesGuidanceBox.Checked;
            Sabertooth       = SabertoothBox.Checked;
            AiluroPouncers   = AiluroPouncersBox.Checked;
            SavageRoar       = SavageRoarBox.Checked;
            JaggedWounds     = JaggedWoundsBox.Checked;
            NightElf         = NightElfBox.Checked;
            BrutalSlash      = BrutalSlashBox.Checked;
            LunarInspiration = LunarInspirationBox.Checked;
            Incarnation      = IncarnationBox.Checked;
            Renewal          = RenewalBox.Checked;

            MessageBox.Show("Settings saved", "PixelMagic", MessageBoxButtons.OK, MessageBoxIcon.Information);
            SettingsForm.Close();
        }
 private void CmdSave_Click(object sender, EventArgs e)
 {
     Combustion  = CombustionBox.Checked;
     Meteor      = MeteorBox.Checked;
     SpellLock   = SpellLockBox.Checked;
     IceBlock    = IceBlockBox.Checked;
     Legendary   = LegendaryBox.Checked;
     LivingBomb  = LivingBombBox.Checked;
     Mirrors     = MirrorsBox.Checked;
     RuneOfPower = RuneOfPowerBox.Checked;
     DragBr      = DragBrBox.Checked;
     Cinderstorm = CinderstormBox.Checked;
     ROF         = ROFBox.Checked;
     Barrier     = BarrierBox.Checked;
     MessageBox.Show("Settings saved.", "CloudMagic", MessageBoxButtons.OK, MessageBoxIcon.Information);
     SettingsForm.Close();
 }
Ejemplo n.º 8
0
 public static void DoExit()
 {
     if (settings.noFrillsExit)
     {
         ExitProcess(0);
     }
     try
     {
         launched = false;
         exiting  = true;
         form.Close();
     }
     catch { };
     for (int i = 0; i < 1000; i++)
     {
         System.Windows.Forms.Application.DoEvents();
     }
 }
 private void CmdSave_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Settings saved.", "CloudMagic", MessageBoxButtons.OK, MessageBoxIcon.Information);
     SettingsForm.Close();
 }
Ejemplo n.º 10
0
 private void BtnSave_Click(object sender, EventArgs e)
 {
     parent.Presenter.SaveGroups(tvwCommandItems.GetGroups());
     parent.Close();
 }
Ejemplo n.º 11
0
 private void CmdSave_Click(object sender, EventArgs e)
 {
     fourt19 = fourt19Box.Checked;
     MessageBox.Show("Settings saved", "PixelMagic", MessageBoxButtons.OK, MessageBoxIcon.Information);
     SettingsForm.Close();
 }
Ejemplo n.º 12
0
    public static void ConfigDialog()
    {
        bool runStudio = Environment.GetEnvironmentVariable("KK_RUNSTUDIO") != null;

        if (((!runStudio) && File.Exists(Dir.root + "Koikatu_Data/Managed/bepinex.dll")) || (runStudio && File.Exists(Dir.root + "CharaStudio_data/Managed/bepinex.dll")))
        {
            splash?.Close();
            MessageBox.Show("This release can't run under bepinex 3 anymore, please update to bepinex 4.");
            ExitProcess(1);
        }
        //System.Windows.Forms.Application.EnableVisualStyles();
        System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(true);
        if (settings.dontshow)
        {
            launched = true;
            return;
        }

        Debug.Log("Spawning config dialog");
        form       = new SettingsForm(settings);
        form.Text += mkver;

        form.resolution.Items.AddRange(settings.resolutions);
        foreach (var n in settings.chardbs)
        {
            form.chardb.Items.Add(n.Split('|')[0]);
        }
        Debug.Log("initializing scripts");
        InitScripts();
        form.UpdateForm();
        splash?.Close();
        if (runStudio)
        {
            form.Show();
            launched = true;
            form.launchButton.Enabled = false;
            form.runChara.Enabled     = false;
            form.scriptReload.Enabled = false;
            return;
        }
        form.scriptReload.Click += (o, e) =>
        {
            DiscoverScripts();
            form.UpdateForm();
        };
        form.launchButton.Click += (o, e) =>
        {
            form.Close();
            launched = true;
        };
        form.runChara.Click += (o, e) =>
        {
            form.Close();
            SaveConfig();
            Environment.SetEnvironmentVariable("KK_RUNSTUDIO", "1");
            Process.Start(exename);
            Environment.Exit(0);
        };
        if (form.ShowDialog() == DialogResult.OK)
        {
            launched = true;
        }
        SaveConfig();
        if (!launched)
        {
            Environment.Exit(1);
        }
        form.launchButton.Enabled = false;
        form.runChara.Enabled     = false;
        form.scriptReload.Enabled = false;
        form.Show();
        form.tabControl1.SelectedIndex = form.tabControl1.Controls.Count - 1;
        form.FormClosing += (o, e) =>
        {
            if (!exiting)
            {
                e.Cancel = true;
            }
        };
    }