Beispiel #1
0
        private void btnMountGenerateCSV_Click(object sender, EventArgs e)
        {
            string CreatureID, CreatureDisplayID, SpellID, SpellIconID, SpellIconName, SpellName, SpellDescription;
            string Type, adaptive, lang;

            CreatureDisplayID = txtm_creaturedisplayid.Text;
            CreatureID        = txtm_CreatureID.Text;
            SpellID           = txtm_spellID.Text;
            SpellIconID       = txtm_SpellIconID.Text;
            SpellIconName     = txtm_spellicon.Text;
            SpellName         = txtm_spellname.Text;
            SpellDescription  = txtm_Description.Text;
            Type = cbxMountType.Text;
            lang = cbm_Language.Text;

            if (cbxMountAdaptive.Checked)
            {
                adaptive = "1";
            }
            else
            {
                adaptive = "0";
            }

            MountGenerator.GenerateMount(CreatureID, CreatureDisplayID, SpellID, SpellIconID, SpellName, SpellDescription, Type, lang, adaptive);

            if (cbxCustomIcon.Checked)
            {
                SpellIconGenerator.GenerateSpellIcon(SpellIconID, SpellIconName);
            }
        }
Beispiel #2
0
        private void btn_Pet_GenerateCsv_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;
            string lang = cbx_pet_language.Text;

            PetGenerator.GeneratePet(PetSpellID, PetSpellName, SpellIconID, SpellIcon, CreatureID, CreatureDisplayID, lang);

            if (cbx_custom_icon.Checked)
            {
                SpellIconGenerator.GenerateSpellIcon(SpellIconID, SpellIcon);
            }
        }