// Loading private void Fmain_Load(object sender, EventArgs e) { SpellLibrary.LoadSpellIconLibrary(); MountLibrary.LoadMountInfoLibrary(); PetLibrary.LoadPetInfoLibrary(); ItemDisplayIconLibrary.LoadMountInfoLibrary(); }
private void btn_Pet_StoreDictionnary_Click(object sender, EventArgs e) { string PetSpellID = txtPetSpellID.Text; string PetSpellName = txtPetName.Text; string SpellIconID = txtPetIconID.Text; string SpellIcon = txtPetIcon.Text; string CreatureID = txtPetCreatureID.Text; string CreatureDisplayID = txtPetDisplayID.Text; PetLibrary.AddToPetXmlLibrary(PetSpellID, CreatureID, CreatureDisplayID, PetSpellName, SpellIcon, SpellIconID); PetLibrary.LoadPetInfoLibrary(); }
// ========================================= Pets ========================================= // private void txtPetSpellID_TextChanged(object sender, EventArgs e) { if (cbx_pet_parselocal.Checked) { txtPetName.Text = PetLibrary.GetKeyPetSpellName(txtPetSpellID.Text); txtPetIconID.Text = PetLibrary.GetKeyPetSpellIconID(txtPetSpellID.Text); txtPetIcon.Text = PetLibrary.GetKeySpellIconName(txtPetSpellID.Text); txtPetCreatureID.Text = PetLibrary.GetKeyPetCreatureID(txtPetSpellID.Text); txtPetDisplayID.Text = PetLibrary.GetKeyPetCreatureDisplayID(txtPetSpellID.Text); } else if (cbx_pet_parsewowhead.Checked) { // todo } }