Ejemplo n.º 1
0
 protected internal override void OnDragDrop(Client.Gump g)
 {
     if (g is GDraggedItem)
     {
         Item item = ((GDraggedItem)g).Item;
         if ((item != null) && (this.m_Mobile != null))
         {
             Network.Send(new PDropItem(item.Serial, -1, -1, 0, this.m_Mobile.Serial));
             Gumps.Destroy(g);
         }
     }
 }
Ejemplo n.º 2
0
 public Client.Gump GetGump()
 {
     if (this.m_Gump != null)
     {
         return(this.m_Gump);
     }
     if (this.m_Item.PropertyList == null)
     {
         this.m_Item.QueryProperties();
         return(null);
     }
     return(this.m_Gump = new GObjectProperties(0xf9060 + (this.m_Item.ID & 0x3fff), this.m_Item, this.m_Item.PropertyList));
 }
Ejemplo n.º 3
0
 public Client.Gump GetGump()
 {
     if (this.m_Gump != null)
     {
         return this.m_Gump;
     }
     if (this.m_Item.PropertyList == null)
     {
         this.m_Item.QueryProperties();
         return null;
     }
     return (this.m_Gump = new GObjectProperties(0xf9060 + (this.m_Item.ID & 0x3fff), this.m_Item, this.m_Item.PropertyList));
 }
Ejemplo n.º 4
0
 public Client.Gump GetGump()
 {
     if (this.m_Gump != null)
     {
         return this.m_Gump;
     }
     if (this.m_Mobile.PropertyList == null)
     {
         this.m_Mobile.QueryProperties();
         return null;
     }
     return (this.m_Gump = new GObjectProperties(-1, this.m_Mobile, this.m_Mobile.PropertyList));
 }
Ejemplo n.º 5
0
 public Client.Gump GetGump()
 {
     if (this.m_Gump != null)
     {
         return(this.m_Gump);
     }
     if (this.m_Mobile.PropertyList == null)
     {
         this.m_Mobile.QueryProperties();
         return(null);
     }
     return(this.m_Gump = new GObjectProperties(-1, this.m_Mobile, this.m_Mobile.PropertyList));
 }
Ejemplo n.º 6
0
 protected internal override void OnDragDrop(Client.Gump g)
 {
     if (!this.m_HitTest)
     {
         base.m_Parent.OnDragDrop(g);
     }
     else if ((g != null) && (g.GetType() == typeof(GDraggedItem)))
     {
         GDraggedItem item  = (GDraggedItem)g;
         Point        point = this.Clip(item.Image, item.Double, base.PointToClient(new Point(Engine.m_xMouse - g.m_OffsetX, Engine.m_yMouse - g.m_OffsetY)), g.m_OffsetX, g.m_OffsetY);
         int          num   = item.Item.ID & 0x3fff;
         if ((num >= 0x3585) && (num <= 0x358a))
         {
             point.Y += 20;
         }
         else if ((num >= 0x358c) && (num <= 0x3591))
         {
             point.Y += 20;
         }
         Gumps.Destroy(item);
         Network.Send(new PDropItem(item.Item.Serial, (short)point.X, (short)point.Y, 0, this.m_Item.Serial));
     }
 }
Ejemplo n.º 7
0
 public abstract void UpdateGump(Client.Gump g);