Exemplo n.º 1
0
        public static bool RefreshGump(Mobile player, ItemStore store)
        {
            //if this mobile has an item store gump up
            if (player.HasGump(typeof(ItemStoreGump)))
            {
                ItemStoreGump gump = (ItemStoreGump)player.FindGump(typeof(ItemStoreGump));

                //if this gump that's up is showing this store, or if no store was specified
                if (store == null || gump.Store == store)
                {
                    //then, resend this gump!
                    player.SendGump(new ItemStoreGump(gump));
                    return(true);
                }
            }

            return(false);
        }
Exemplo n.º 2
0
 //gump refresh constructor
 public ItemStoreGump(ItemStoreGump oldgump) : this(oldgump.Owner, oldgump.Store, oldgump.Page)
 {
 }
Exemplo n.º 3
0
 //gump refresh constructor
 public ItemStoreGump( ItemStoreGump oldgump )
     : this(oldgump.Owner, oldgump.Store, oldgump.Page)
 {
 }