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(species - 1, i); } for (int i = 0; i < 9; i++) { CL[i].Enabled = species <= SAV.MaxSpeciesID; CL[i].Checked = CL[i].Enabled && Dex.GetLanguageFlag(pk, i); } LoadRecord(species, Math.Max(0, LB_Forms.SelectedIndex)); editing = false; }
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); CHK_P2.Enabled = CHK_P4.Enabled = CHK_P6.Enabled = CHK_P8.Enabled = gt != PersonalInfo.RatioMagicFemale; // Not Female-Only CHK_P3.Enabled = CHK_P5.Enabled = CHK_P7.Enabled = CHK_P9.Enabled = gt is not(0 or 255); // 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(currentSpecies - 1, i); } for (int i = 0; i < 9; i++) { CL[i].Enabled = currentSpecies <= SAV.MaxSpeciesID; CL[i].Checked = CL[i].Enabled && Dex.GetLanguageFlag(pk, i); } int speciesID = Dex.GetBaseSpecies(currentSpecies); LoadRecord(speciesID, Math.Max(0, LB_Forms.SelectedIndex)); editing = false; }
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);