private void B_CaughtNone_Click(object sender, EventArgs e) { for (int i = 0; i < MAX_SPECIES; i++) { CLB_Caught.SetItemChecked(i, false); } }
private void B_CaughtNone_Click(object sender, EventArgs e) { for (int i = 0; i < SAV.MaxSpeciesID; i++) { CLB_Caught.SetItemChecked(i, false); } }
public SAV_SimplePokedex() { InitializeComponent(); WinFormsUtil.TranslateInterface(this, Main.curlanguage); seen = new bool[SAV.MaxSpeciesID]; caught = new bool[SAV.MaxSpeciesID]; string[] spec = Util.getSpeciesList(Main.curlanguage); for (int i = 0; i < seen.Length; i++) { int species = i + 1; seen[i] = SAV.getSeen(species); caught[i] = SAV.getCaught(species); CLB_Seen.Items.Add(spec[species]); CLB_Caught.Items.Add(spec[species]); CLB_Seen.SetItemChecked(i, seen[i]); CLB_Caught.SetItemChecked(i, caught[i]); } initialized = true; }
public SAV_SimplePokedex(SaveFile sav) { InitializeComponent(); WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage); SAV = (Origin = sav).Clone(); seen = new bool[SAV.MaxSpeciesID]; caught = new bool[SAV.MaxSpeciesID]; var speciesNames = GameInfo.Strings.specieslist; for (int i = 0; i < seen.Length; i++) { int species = i + 1; seen[i] = SAV.GetSeen(species); caught[i] = SAV.GetCaught(species); CLB_Seen.Items.Add(speciesNames[species]); CLB_Caught.Items.Add(speciesNames[species]); CLB_Seen.SetItemChecked(i, seen[i]); CLB_Caught.SetItemChecked(i, caught[i]); } initialized = true; }
public SAV_Pokedex(ref SAV1 source) { InitializeComponent(); sav = source; foreach (int mon in Tables.Dex_To_ID) { if (mon != 0) { CLB_Seen.Items.Add(Tables.ID_To_Name[mon]); CLB_Caught.Items.Add(Tables.ID_To_Name[mon]); } } for (int i = 0; i < MAX_SPECIES; i++) { CLB_Seen.SetItemChecked(i, sav.Pokedex_Seen[i + 1]); initial_seen[i] = sav.Pokedex_Seen[i + 1]; CLB_Caught.SetItemChecked(i, sav.Pokedex_Caught[i + 1]); initial_caught[i] = sav.Pokedex_Caught[i + 1]; } initialized = true; }