public void OnTarget(object o)
 {
     if (o is Item)
     {
         Item removed = (Item)o;
         removed.OverrideHue(this.m_Hue);
         if ((removed.Parent != null) && (removed.Parent.Container != null))
         {
             removed.Parent.Container.OnItemRemove(removed);
             removed.Parent.Container.OnItemAdd(removed);
         }
         else if (removed.InWorld)
         {
             removed.Update();
         }
         else if (removed.IsEquip && (removed.EquipParent is Mobile))
         {
             Mobile equipParent = (Mobile)removed.EquipParent;
             if (equipParent.Paperdoll != null)
             {
                 Gumps.OpenPaperdoll(equipParent, equipParent.PaperdollName, equipParent.PaperdollCanDrag);
             }
         }
     }
     else
     {
         Engine.TargetHandler = this;
     }
 }
Exemple #2
0
 public void EquipRemoved()
 {
     GCombatGump.Update();
     if (this.m_Paperdoll != null)
     {
         Gumps.OpenPaperdoll(this, this.m_PaperdollName, this.m_PaperdollCanDrag);
     }
 }
Exemple #3
0
 public void EquipChanged()
 {
     GCombatGump.Update();
     this.m_Equip.Sort(LayerComparer.FromDirection(this.m_Direction));
     if (this.m_Paperdoll != null)
     {
         Gumps.OpenPaperdoll(this, this.m_PaperdollName, this.m_PaperdollCanDrag);
     }
 }
 public void OnTarget(object o)
 {
     if (o is Item)
     {
         Item item = (Item)o;
         if (World.CharData.AutoUse.Contains(item))
         {
             item.OverrideHue(-1);
             World.CharData.AutoUse.Remove(item);
         }
         else
         {
             item.OverrideHue(0x22);
             World.CharData.AutoUse.Add(item);
         }
         World.CharData.Save();
         if ((item.Parent != null) && (item.Parent.Container != null))
         {
             item.Parent.Container.OnItemRemove(item);
             item.Parent.Container.OnItemAdd(item);
         }
         else if (item.InWorld)
         {
             item.Update();
         }
         else if (item.IsEquip && (item.EquipParent is Mobile))
         {
             Mobile equipParent = (Mobile)item.EquipParent;
             if (equipParent.Paperdoll != null)
             {
                 Gumps.OpenPaperdoll(equipParent, equipParent.PaperdollName, equipParent.PaperdollCanDrag);
             }
         }
     }
     else
     {
         Engine.TargetHandler = this;
     }
 }