Esempio n. 1
0
        private void btnImportProfile_Click(object sender, EventArgs e)
        {
            var fd = new OpenFileDialog
            {
                Filter      = "Orderbot profile (.xml)|*.xml",
                FilterIndex = 1,
                Multiselect = false
            };

            if (fd.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            try
            {
                var profileParser = new ProfileParser(fd.FileName);
                _profile = profileParser.ToProfile();
                refreshForm();
            }
            catch (NoParserException)
            {
                MessageBox.Show($"GatherUp can only import profiles generated with this tool from version: {GatherUp.version} and below.");
            }
            catch (ParsingException err)
            {
                MessageBox.Show(err.Message);
            }
        }
Esempio n. 2
0
        public GatherUpForm()
        {
            InitializeComponent();
            _profile = new Profile();

            Text                     = "GatherUp - " + GatherUp.version.ToString();
            numRadius.Value          = new Profile.HotSpot(new Clio.Utilities.Vector3()).Radius;
            numRadiusBlackSpot.Value = 10;
            lblPath.Text             = Settings.Current.SavePath;

            //Gatheringskills
            foreach (var spell in DataManager.SpellCache.Values.Where(o =>
                                                                      o.Job == ff14bot.Enums.ClassJobType.Miner || o.Job == ff14bot.Enums.ClassJobType.Botanist))
            {
                cbBoxGatheringSkills.Items.Add(spell.Name);
            }

            cbBoxGatheringSkills.Sorted = true;

            //teleportLocations:
            foreach (var teleport in ff14bot.Managers.WorldManager.AvailableLocations)
            {
                cbBoxLocationNameOnStart.Items.Add(teleport);
                cbBoxLocationNameOnComplete.Items.Add(teleport);
            }

            cbBoxLocationNameOnStart.DisplayMember    = "Name";
            cbBoxLocationNameOnComplete.DisplayMember = "Name";

            cbBoxCordialType.Items.Add(Profile.CordialType.None);
            cbBoxCordialType.Items.Add(Profile.CordialType.Cordial);
            cbBoxCordialType.Items.Add(Profile.CordialType.HiCordial);
            cbBoxCordialType.Items.Add(Profile.CordialType.Auto);
            cbBoxCordialType.SelectedIndex = 0;

            this.refreshForm();
        }