public void OnItemRemove(Client.Item item) { GContainerItem g = (GContainerItem)this.m_Hash[item]; if (g != null) { Gumps.Destroy(g); this.m_Hash[item] = null; } }
public void OnItemAdd(Client.Item item) { if (((base.m_GumpID != 9) || ((item.ID & 0x3fff) < 0x2006)) || ((item.ID & 0x3fff) > 0x2050)) { GContainerItem g = (GContainerItem)this.m_Hash[item]; if (g != null) { Gumps.Destroy(g); } this.m_Hash[item] = g = new GContainerItem(item, this.m_Item); g.m_CanDrag = !this.m_TradeContainer; base.m_Children.Add(g); } }
public void OnItemRefresh(Client.Item item) { if (((base.m_GumpID == 9) && ((item.ID & 0x3fff) >= 0x2006)) && ((item.ID & 0x3fff) <= 0x2050)) { this.OnItemRemove(item); } else { GContainerItem toAdd = (GContainerItem)this.m_Hash[item]; if (toAdd == null) { toAdd = new GContainerItem(item, this.m_Item); this.m_Hash[item] = toAdd; base.m_Children.Add(toAdd); } else { toAdd.Refresh(); } toAdd.m_CanDrag = !this.m_TradeContainer; } }
public GContainer(Client.Item container, int gumpID, IHue hue) : base(0.25f, 0.25f, 0.6f, gumpID, 50, 50, hue) { this.m_HitTest = true; this.m_Hash = new Hashtable(); this.m_Item = container; base.m_CanDrop = true; this.GetBounds(gumpID); base.m_NonRestrictivePicking = true; ArrayList items = container.Items; int count = items.Count; for (int i = 0; i < count; i++) { Client.Item item = (Client.Item) items[i]; if (((base.m_GumpID != 9) || ((item.ID & 0x3fff) < 0x2006)) || ((item.ID & 0x3fff) > 0x2050)) { Client.Gump toAdd = new GContainerItem(item, this.m_Item); this.m_Hash[item] = toAdd; toAdd.m_CanDrag = !this.m_TradeContainer; base.m_Children.Add(toAdd); } } }
public GContainer(Client.Item container, int gumpID, IHue hue) : base(0.25f, 0.25f, 0.6f, gumpID, 50, 50, hue) { this.m_HitTest = true; this.m_Hash = new Hashtable(); this.m_Item = container; base.m_CanDrop = true; this.GetBounds(gumpID); base.m_NonRestrictivePicking = true; ArrayList items = container.Items; int count = items.Count; for (int i = 0; i < count; i++) { Client.Item item = (Client.Item)items[i]; if (((base.m_GumpID != 9) || ((item.ID & 0x3fff) < 0x2006)) || ((item.ID & 0x3fff) > 0x2050)) { Client.Gump toAdd = new GContainerItem(item, this.m_Item); this.m_Hash[item] = toAdd; toAdd.m_CanDrag = !this.m_TradeContainer; base.m_Children.Add(toAdd); } } }
public void OnItemRefresh(Client.Item item) { if (((base.m_GumpID == 9) && ((item.ID & 0x3fff) >= 0x2006)) && ((item.ID & 0x3fff) <= 0x2050)) { this.OnItemRemove(item); } else { GContainerItem toAdd = (GContainerItem) this.m_Hash[item]; if (toAdd == null) { toAdd = new GContainerItem(item, this.m_Item); this.m_Hash[item] = toAdd; base.m_Children.Add(toAdd); } else { toAdd.Refresh(); } toAdd.m_CanDrag = !this.m_TradeContainer; } }
public void OnItemAdd(Client.Item item) { if (((base.m_GumpID != 9) || ((item.ID & 0x3fff) < 0x2006)) || ((item.ID & 0x3fff) > 0x2050)) { GContainerItem g = (GContainerItem) this.m_Hash[item]; if (g != null) { Gumps.Destroy(g); } this.m_Hash[item] = g = new GContainerItem(item, this.m_Item); g.m_CanDrag = !this.m_TradeContainer; base.m_Children.Add(g); } }