Exemplo n.º 1
0
        private void itemIconCreateSaveDisplayId_Click(object sender, RoutedEventArgs e)
        {
            if (Item == null)
            {
                return;
            }
            // no need finding old ones cuz this is FAST ENOUGH!
            int id         = (from d in LegacyToolBox.Data.ItemDisplayInfo select d.ID).Max() + 1;
            int groupSound = (int)itemGroupSound.SelectedValue;

            LegacyToolBox.Data.ItemDisplayInfo.Add(new ItemDisplayInfo()
            {
                ID                 = id,
                Icon1              = SelectedIconName,
                GroupSoundIndex    = groupSound,
                GeosetGroup1       = 0,
                GeosetGroup2       = 0,
                GeosetGroup3       = 0,
                SpellVisualID      = 0,
                HelmetGeosetFemale = 0,
                HelmetGeosetMale   = 0,
                ItemVisual         = 0,
                ParticleColorID    = 0
            });
            Item.displayid = id;
            WorldWorker.SaveItemTemplate(Item);
            itemIconCreateID.Text = id.ToString();
            WorldWorker.SaveItemDisplayInfo(LegacyToolBox.Data.ItemDisplayInfo);
        }
Exemplo n.º 2
0
 void BuildItemDisplayInfoDBC()
 {
     WorldWorker.SaveItemDisplayInfo(LegacyToolBox.Data.ItemDisplayInfo);
 }