Exemple #1
0
        public DenIVs(int idx, RaidManager raids)
        {
            InitializeComponent();
            GameStrings = GameInfo.Strings;
            Raids       = raids;
            var param = raids[idx];

            seedBox.Text         = $"{param.Seed:X16}";
            denBox.SelectedIndex = idx;
            natureBox.Items.Clear();
            natureBox.Items.Add("Any");
            natureBox.Items.AddRange(GameStrings.natures);
            for (int i = 0; i < GameStrings.natures.Length; i++)
            {
                natureIdx[GameStrings.natures[i]] = i + 1;
            }
            natureBox.MaxDropDownItems = GameStrings.natures.Length;
            natureBox.DefaultValue     = "Any";
            natureBox.DisplayMember    = "Value";
            natureBox.SetItemChecked(0, true);
            natureBox.DropDownClosed += new EventHandler((object sender, EventArgs e) => {
                Focus();
            });
            shinyBox.SelectedIndex = 0;
            CenterToParent();
        }
 public RaidList(SaveBlockAccessor8SWSH blocks, GameVersion game, int badges, int tid, int sid)
 {
     InitializeComponent();
     IVs    = new[] { TB_HP_IV1, TB_ATK_IV1, TB_DEF_IV1, TB_SPA_IV1, TB_SPD_IV1, TB_SPE_IV1 };
     _raids = new RaidManager(blocks, game, badges, (uint)tid, (uint)sid);
     CB_Den.SelectedIndex = 0;
     CenterToParent();
 }
Exemple #3
0
        public DenIVs(int idx, RaidManager raids)
        {
            InitializeComponent();
            Raids = raids;
            var param = raids[idx];

            seedBox.Text            = $"{param.Seed:X16}";
            denBox.SelectedIndex    = idx;
            natureBox.SelectedIndex = shinyBox.SelectedIndex = 0;
            CenterToParent();
        }
Exemple #4
0
        public DenIVs(int idx, RaidManager raids)
        {
            InitializeComponent();
            Raids = raids;
            var param = raids[idx];

            seedBox.Text         = $"{param.Seed:X16}";
            denBox.SelectedIndex = idx;
            natureBox.Items.Clear();
            natureBox.Items.Add("Any");
            natureBox.Items.AddRange(GameInfo.Strings.natures);
            natureBox.SelectedIndex = shinyBox.SelectedIndex = 0;
            CenterToParent();
        }