Пример #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);
        }
Пример #2
0
 //gump refresh constructor
 public ItemStoreGump(ItemStoreGump oldgump) : this(oldgump.Owner, oldgump.Store, oldgump.Page)
 {
 }
Пример #3
0
 //gump refresh constructor
 public ItemStoreGump( ItemStoreGump oldgump )
     : this(oldgump.Owner, oldgump.Store, oldgump.Page)
 {
 }