Exemple #1
0
        public void PopulateFields(SAV1 s)
        {
            sav = s;

            L_Save.Text = "SAV: " + Path.GetFileNameWithoutExtension(sav.FileName); // more descriptive

            CB_BoxSelect.SelectedIndex = sav.Current_Box_Index;
            PLC_Party.SetList(sav.Party);
            PLC_DayCare.SetList(sav.Daycare);
            getBox(null, null);

            TB_SaveName.Text = sav.OT_Name;
            TB_Rival.Text    = sav.Rival_Name;

            for (int i = 0; i < CLB_Badges.Items.Count; i++)
            {
                CLB_Badges.SetItemChecked(i, sav.Badges[i]);
            }

            changingFields = true;

            MT_Hours.Text   = sav.Time_Played[0].ToString();
            MT_Minutes.Text = sav.Time_Played[1].ToString();
            MT_Seconds.Text = sav.Time_Played[2].ToString();

            changingFields = false;

            TB_Money.Text   = sav.Money;
            TB_Coins.Text   = sav.Coins;
            TB_SaveTID.Text = sav.TID.ToString("00000");

            TB_PikaFriend.Text = sav.Pika_Friendship.ToString("000");
        }
Exemple #2
0
 private void getBox(object sender, EventArgs e)
 {
     if (sender == CB_BoxSelect && saveLoaded)
     {
         sav.CurrentBox = PLC_Box.pokemonlist;
     }
     sav.Current_Box_Index = CB_BoxSelect.SelectedIndex;
     PLC_Box.SetList(sav.CurrentBox);
 }