コード例 #1
0
 public static void SendGump(Mobile from, MasterStorage backpack, int page, BaseStorage filter)
 {
     CloseGump(from);
     if (from == null)
     {
         return;
     }
     if (backpack == null || backpack.Deleted || !backpack.IsOwner(from as PlayerMobile))
     {
         from.SendMessage(1173, "You don't have your Master Storage in your backpack.");
         return;
     }
     from.SendGump(new MasterStorageStorageGump(from as PlayerMobile, backpack, page, filter));
 }
コード例 #2
0
 public MasterStorageStorageGump(PlayerMobile player, MasterStorage backpack, int page, BaseStorage filter) : base(20, 20)
 {
     this.backpack = backpack;
     this.page     = page;
     this.player   = player;
     this.filter   = filter;
     items         = null;
     if (backpack != null)
     {
         if (page == -1)
         {
             page = backpack.StoragePage;
         }
         if (filter == null)
         {
             filter = backpack.StorageFilter;
         }
     }
     init();
     if (player == null || backpack == null)
     {
         return;
     }
     drawFilters();
     drawItems();
     addPageControls();
 }