Пример #1
0
        private void SettingsLoad(object sender, EventArgs e)
        {
            Herb.HasLoaded = false;
            Mine.HasLoaded = false;

            groupPanel5.Visible = true;
            // superTabItem2.Visible = LazyLib.License.LoadedLicense;
            SetupCBHerb.Checked              = FlyingSettings.Herb;
            SetupCBMine.Checked              = FlyingSettings.Mine;
            SetupTBApproachModifier.Text     = FlyingSettings.ApproachModifier.ToString();
            SetupTBMaxUnits.Text             = FlyingSettings.MaxUnits;
            SetupCBStopOnDeath.Checked       = FlyingSettings.StopOnDeath;
            SetupCBStopHarvest.Checked       = FlyingSettings.StopHarvestWithPlayerAround;
            SetupCBAvoidPlayers.Checked      = FlyingSettings.AvoidPlayers;
            CBAutoBlacklist.Checked          = FlyingSettings.AutoBlacklist;
            CBAvoidElites.Checked            = FlyingSettings.AvoidElites;
            SetupCBFindCorpse.Checked        = FlyingSettings.FindCorpse;
            CBStopOnFullBags.Checked         = FlyingSettings.StopOnFullBags;
            KeysFlyingMountBar.SelectedIndex = KeysFlyingMountBar.FindStringExact(FlyingSettings.FlyingMountBar);
            KeysFlyingMountKey.SelectedIndex = KeysFlyingMountKey.FindStringExact(FlyingSettings.FlyingMountKey);
            CBRessWait.Checked             = FlyingSettings.WaitForRessSick;
            CBWaitForLoot.Checked          = FlyingSettings.WaitForLoot;
            CBDruidAvoidCombat.Checked     = FlyingSettings.DruidAvoidCombat;
            KeysExtraBar.SelectedIndex     = KeysExtraBar.FindStringExact(FlyingSettings.ExtraBar);
            KeysExtraKey.SelectedIndex     = KeysExtraKey.FindStringExact(FlyingSettings.ExtraKey);
            CBSendKeyOnStartCombat.Checked = FlyingSettings.SendKeyOnStartCombat;
            //Fish
            CBFish.Checked                 = FlyingSettings.Fish;
            CBUseLure.Checked              = FlyingSettings.Lure;
            SetupTBMaxTimeAtSchool.Value   = Convert.ToInt32(FlyingSettings.MaxTimeAtSchool);
            SetupTBFishApproach.Value      = Convert.ToInt32(FlyingSettings.FishApproach);
            KeysLureBar.SelectedIndex      = KeysLureBar.FindStringExact(FlyingSettings.LureBar);
            KeysLureKey.SelectedIndex      = KeysLureKey.FindStringExact(FlyingSettings.LureKey);
            KeysWaterwalkBar.SelectedIndex = KeysWaterwalkBar.FindStringExact(FlyingSettings.WaterwalkBar);
            KeysWaterwalkKey.SelectedIndex = KeysWaterwalkKey.FindStringExact(FlyingSettings.WaterwalkKey);

            LoadHerbList();
            LoadMineList();
            LoadSchoolList();
        }
Пример #2
0
 private void Settings_Load(object sender, EventArgs e)
 {
     KeysLureBar.SelectedIndex = KeysLureBar.FindStringExact(FishingSettings.LureBar);
     KeysLureKey.SelectedIndex = KeysLureKey.FindStringExact(FishingSettings.LureKey);
     UseLure.Checked           = FishingSettings.UseLure;
 }