void SetControls()
        {
            ConfigData config = MidsContext.Config;

            this.optSO.Checked            = config.CalcEnhOrigin == Enums.eEnhGrade.SingleO;
            this.optDO.Checked            = config.CalcEnhOrigin == Enums.eEnhGrade.DualO;
            this.optTO.Checked            = config.CalcEnhOrigin == Enums.eEnhGrade.TrainingO;
            this.cbEnhLevel.SelectedIndex = (int)config.CalcEnhLevel;
            this.udExHigh.Value           = new Decimal(config.ExempHigh);
            this.udExLow.Value            = new Decimal(config.ExempLow);
            this.udForceLevel.Value       = new Decimal(config.ForceLevel);
            this.chkHighVis.Checked       = config.EnhanceVisibility;
            this.rbGraphTwoLine.Checked   = config.DataGraphType == Enums.eDDGraph.Both;
            this.rbGraphStacked.Checked   = config.DataGraphType == Enums.eDDGraph.Stacked;
            this.rbGraphSimple.Checked    = config.DataGraphType == Enums.eDDGraph.Simple;
            this.rbPvE.Checked            = !config.Inc.DisablePvE;
            this.rbPvP.Checked            = config.Inc.DisablePvE;
            this.rbChanceAverage.Checked  = config.DamageMath.Calculate == ConfigData.EDamageMath.Average;
            this.rbChanceMax.Checked      = config.DamageMath.Calculate == ConfigData.EDamageMath.Max;
            this.rbChanceIgnore.Checked   = config.DamageMath.Calculate == ConfigData.EDamageMath.Minimum;
            this.udBaseToHit.Value        = new Decimal(config.BaseAcc * 100f);
            this.chkVillainColour.Checked = !config.DisableVillainColours;
            this.chkUpdates.Checked       = config.CheckForUpdates;
            this.udIOLevel.Value          = Decimal.Compare(new Decimal(config.I9.DefaultIOLevel + 1), this.udIOLevel.Maximum) <= 0 ? new Decimal(config.I9.DefaultIOLevel + 1) : this.udIOLevel.Maximum;
            this.chkIOLevel.Checked       = !config.I9.HideIOLevels;
            this.chkIOEffects.Checked     = !config.I9.IgnoreEnhFX;
            this.chkSetBonus.Checked      = !config.I9.IgnoreSetBonusFX;
            this.chkRelSignOnly.Checked   = config.ShowRelSymbols;
            this.chkIOPrintLevels.Checked = !config.I9.DisablePrintIOLevels;
            this.chkColourPrint.Checked   = config.PrintInColour;
            this.udRTFSize.Value          = new decimal(config.RtFont.RTFBase / 2.0);
            this.udStatSize.Value         = new decimal(config.RtFont.PairedBase);
            this.chkTextBold.Checked      = config.RtFont.RTFBold;
            this.chkStatBold.Checked      = config.RtFont.PairedBold;
            this.chkLoadLastFile.Checked  = !config.DisableLoadLastFileOnStart;
            this.dcNickName.Text          = config.DNickName;
            this.dcChannel.Text           = config.DChannel;
            foreach (var item in config.DServers.Append(config.DSelServer).Where(item => !string.IsNullOrWhiteSpace(item) && !this.dcExList.Items.Contains(config.DSelServer)).Distinct())
            {
                this.dcExList.Items.Add(item);
            }
            if (!string.IsNullOrWhiteSpace(config.DSelServer))
            {
                this.dcExList.SelectedItem = config.DSelServer;
            }
            this.richTextBox3.AppendText("You can invite the bot by clicking -> " + Clshook.ShrinkTheDatalink("https://discordapp.com/api/oauth2/authorize?client_id=593333282234695701&permissions=18432&redirect_uri=https%3A%2F%2Fmidsreborn.com&scope=bot"));
            this.lblSaveFolder.Text = config.GetSaveFolder();
            //this.txtUpdatePath.Text = config.UpdatePath;
            this.chkColorInherent.Checked  = !config.DisableDesaturateInherent;
            this.chkMiddle.Checked         = !config.DisableRepeatOnMiddleClick;
            this.chkNoTips.Checked         = config.NoToolTips;
            this.chkShowAlphaPopup.Checked = !config.DisableAlphaPopup;
            this.chkUseArcanaTime.Checked  = config.UseArcanaTime;
            this.TeamSize.Value            = new decimal(config.TeamSize);
            int index = 0;

            do
            {
                this.defActs[index] = config.DragDropScenarioAction[index];
                ++index;
            }while (index <= 19);
        }
Esempio n. 2
0
        private void InvBot_Click(object sender, EventArgs e)
        {
            var botLink = Clshook.ShrinkTheDatalink("https://discordapp.com/api/oauth2/authorize?client_id=593333282234695701&permissions=18432&redirect_uri=https%3A%2F%2Fmidsreborn.com&scope=bot");

            Process.Start(botLink);
        }