Ejemplo n.º 1
0
        private void GetEntry(int index)
        {
            var entry = Indexes[index].Entry;

            if (entry.DexType == Zukan8Type.None)
            {
                return;
            }

            var species = Indexes[index].Species;
            var forms   = GetFormList(species);

            if (forms[0].Length == 0)
            {
                forms[0] = GameInfo.Strings.Types[0];
            }

            for (int i = 0; i < CHK.Length; i++)
            {
                var c = CHK[i];
                for (int j = 0; j < 64; j++)
                {
                    if (j < 63)
                    {
                        c.Items[j] = $"{j:00} - {(j < forms.Length ? forms[j] : "N/A")}";
                    }
                    var val = Dex.GetSeenRegion(entry, j, i);
                    c.SetItemChecked(j, val);
                }

                if (species == (int)Species.Urshifu)
                {
                    c.Items[62] = $"Gmax-{forms[1]}";
                    c.Items[63] = $"Gmax-{forms[0]}";
                }
                else
                {
                    c.Items[63] = "Gigantamax";
                }
            }

            for (int i = 0; i < CL.Length; i++)
            {
                CL[i].Checked = Dex.GetIsLanguageIndexObtained(entry, i);
            }

            NUD_Form.Value = Dex.GetAltFormDisplayed(entry);

            CHK_Caught.Checked       = Dex.GetCaught(entry);
            CHK_Gigantamaxed.Checked = Dex.GetCaughtGigantamaxed(entry);
            CHK_G.Checked            = Dex.GetDisplayDynamaxInstead(entry);
            CHK_S.Checked            = Dex.GetDisplayShiny(entry);
            CB_Gender.SelectedIndex  = (int)Dex.GetGenderDisplayed(entry);

            NUD_Battled.Value = Dex.GetBattledCount(entry);
        }
Ejemplo n.º 2
0
        private void GetEntry()
        {
            var s = CurrentSpecies;

            if (s <= 0)
            {
                return;
            }

            var forms = GetFormList(s);

            if (forms[0].Length == 0)
            {
                forms[0] = GameInfo.Strings.Types[0];
            }

            for (int i = 0; i < CHK.Length; i++)
            {
                var c = CHK[i];
                for (int j = 0; j < 64; j++)
                {
                    if (j < 63)
                    {
                        c.Items[j] = $"{j:00} - {(j < forms.Length ? forms[j] : "N/A")}";
                    }
                    var val = Dex.GetSeenRegion(s, j, i);
                    c.SetItemChecked(j, val);
                }
            }

            for (int i = 0; i < CL.Length; i++)
            {
                CL[i].Checked = Dex.GetIsLanguageIndexObtained(s, i);
            }

            NUD_Form.Value = Dex.GetAltFormDisplayed(s);

            CHK_Caught.Checked       = Dex.GetCaught(s);
            CHK_Gigantamaxed.Checked = Dex.GetCaughtGigantamaxed(s);
            CHK_G.Checked            = Dex.GetDisplayDynamaxInstead(s);
            CHK_S.Checked            = Dex.GetDisplayShiny(s);
            CB_Gender.SelectedIndex  = (int)Dex.GetGenderDisplayed(s);

            NUD_Battled.Value = Dex.GetBattledCount(s);
        }