public void SetPokemon(PKMDS.Pokemon pkm) { PokemonSet = false; this.SharedPokemon = pkm.Clone(); this.TempPokemon = pkm.Clone(); //this.IsParty = false; }
public void SetPokemon(PKMDS.PartyPokemon ppkm) { PokemonSet = false; //SetPokemon(ppkm.PokemonData); this.SharedPokemon = ppkm.PokemonData.Clone(); this.TempPokemon = ppkm.PokemonData.Clone(); //this.IsParty = true; }
private void frmMemMapTestA_Load(object sender, EventArgs e) { ((Control)(pbSprite)).AllowDrop = true; frmpkm = PKMDS.ReadPokemonFile("Dragonite.pkm"); Random rnd = new Random(DateTime.Now.Millisecond); frmpkm.SpeciesID = (UInt16)(rnd.Next(1, 649)); frmpkm.SID = 0x1234; lblData.Text = frmpkm.SpeciesName; pbSprite.Image = frmpkm.Sprite; }
private PKMDS.PartyPokemon ViewPokemon(PKMDS.PartyPokemon ppkm) { pkmviewer.SetPokemon(ppkm.PokemonData.Clone()); pkmviewer.ShowDialog(); PKMDS.PartyPokemon newppkm = new PKMDS.PartyPokemon(); newppkm.PokemonData = pkmviewer.SharedPokemon.Clone(); return newppkm; }
private PKMDS.Pokemon ViewPokemon(PKMDS.Pokemon pkm) { pkmviewer.SetPokemon(pkm); pkmviewer.ShowDialog(); return pkmviewer.SharedPokemon; }
private void PreviewPokemon(PKMDS.Pokemon pkm) { pbSprite.Image = pkm.Sprite; pbGender.Image = pkm.GenderIcon; pbHeldItem.Image = pkm.ItemPic; pbBall.Image = pkm.BallPic; pbShiny.Image = pkm.ShinyIcon; lblHeldItem.Text = PKMDS.GetItemName(pkm.ItemID); lblNickname.Text = pkm.Nickname; lblLevel.Text = "Level " + pkm.Level.ToString(""); }
private void DisplayPokemon(PKMDS.Pokemon pkm) { UpdateFormIcon(); UpdateCommonInfo(); UpdateBasicInfo(); UpdateStatsInfo(); UpdateMovesInfo(); UpdateOriginsInfo(); UpdateRibbonsInfo(); UpdateMiscInfo(); PokemonSet = true; }