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