Beispiel #1
0
        private void GetEntry()
        {
            int pk = currentSpecies - 1;

            editing        = true;
            CHK_P1.Enabled = currentSpecies <= SAV.MaxSpeciesID;
            CHK_P1.Checked = CHK_P1.Enabled && Dex.GetCaught(currentSpecies);

            int gt = Dex.GetBaseSpeciesGenderValue(LB_Species.SelectedIndex);

            bool canBeMale   = gt != PersonalInfo.RatioMagicFemale;
            bool canBeFemale = gt is not(PersonalInfo.RatioMagicMale or PersonalInfo.RatioMagicGenderless);

            CHK_P2.Enabled = CHK_P4.Enabled = CHK_P6.Enabled = CHK_P8.Enabled = canBeMale;   // Not Female-Only
            CHK_P3.Enabled = CHK_P5.Enabled = CHK_P7.Enabled = CHK_P9.Enabled = canBeFemale; // Not Male-Only and Not Genderless

            for (int i = 0; i < 4; i++)
            {
                CP[i + 1].Checked = Dex.GetSeen(currentSpecies, i);
            }

            for (int i = 0; i < 4; i++)
            {
                CP[i + 5].Checked = Dex.GetDisplayed(pk, i);
            }

            for (int i = 0; i < 9; i++)
            {
                CL[i].Enabled = currentSpecies <= SAV.MaxSpeciesID;
                CL[i].Checked = CL[i].Enabled && Dex.GetLanguageFlag(pk, i);
            }
            editing = false;
        }
Beispiel #2
0
        private void GetEntry()
        {
            int pk = species - 1;

            editing        = true;
            CHK_P1.Enabled = species <= SAV.MaxSpeciesID;
            CHK_P1.Checked = CHK_P1.Enabled && Dex.GetCaught(species);

            int gt = Dex.GetBaseSpeciesGenderValue(LB_Species.SelectedIndex);

            CHK_P2.Enabled = CHK_P4.Enabled = CHK_P6.Enabled = CHK_P8.Enabled = gt != 254;            // Not Female-Only
            CHK_P3.Enabled = CHK_P5.Enabled = CHK_P7.Enabled = CHK_P9.Enabled = gt != 0 && gt != 255; // Not Male-Only and Not Genderless

            for (int i = 0; i < 4; i++)
            {
                CP[i + 1].Checked = Dex.GetSeen(species, i);
            }

            for (int i = 0; i < 4; i++)
            {
                CP[i + 5].Checked = Dex.GetDisplayed(pk, i);
            }

            for (int i = 0; i < 9; i++)
            {
                CL[i].Enabled = species <= SAV.MaxSpeciesID;
                CL[i].Checked = CL[i].Enabled && Dex.GetLanguageFlag(pk, i);
            }
            editing = false;
        }