/// <param name="InventorySource">Typically this is <see cref="Game1.player.Items"/> if this menu should display the player's inventory.</param> /// <param name="ActualCapacity">The maximum # of items that can be stored in the InventorySource list. Use <see cref="Game1.player.MaxItems"/> if moving to/from the inventory.</param> protected override ItemBagMenu CreateMenu(IList <Item> InventorySource, int ActualCapacity) { try { ItemBagMenu Menu = new ItemBagMenu(this, InventorySource, ActualCapacity, 12, BagInventoryMenu.DefaultInventoryIconSize); Menu.Content = new BundleBagMenu(Menu, this, 20, 48, true, 12); return(Menu); } catch (Exception ex) { ItemBagsMod.ModInstance.Monitor.Log(string.Format("Unhandled error while creating BundleBagMenu: {0}", ex.Message), LogLevel.Error); return(null); } }
/// <param name="InventorySource">Typically this is <see cref="Game1.player.Items"/> if this menu should display the player's inventory.</param> /// <param name="ActualCapacity">The maximum # of items that can be stored in the InventorySource list. Use <see cref="Game1.player.MaxItems"/> if moving to/from the inventory.</param> protected override ItemBagMenu CreateMenu(IList <Item> InventorySource, int ActualCapacity) { try { ItemBagMenu Menu = new ItemBagMenu(this, InventorySource, ActualCapacity, SizeInfo.MenuOptions); Menu.Content = new BoundedBagMenu(Menu, this, SizeInfo.MenuOptions, 12); return(Menu); } catch (Exception ex) { ItemBagsMod.ModInstance.Monitor.Log(string.Format("Unhandled error while creating BoundedBagMenu: {0}", ex.Message), LogLevel.Error); return(null); } }
protected override ItemBagMenu CreateMenu(IList <Item> InventorySource, int ActualCapacity) { try { ItemBagMenu Menu = new ItemBagMenu(this, InventorySource, ActualCapacity, 12, BagInventoryMenu.DefaultInventoryIconSize); ItemBagsMod.UserConfig.GetOmniBagMenuOptions(Size, out int NumColumns, out int SlotSize); Menu.Content = new OmniBagMenu(Menu, this, NumColumns, SlotSize, true, 12); return(Menu); } catch (Exception ex) { ItemBagsMod.ModInstance.Monitor.Log(string.Format("Unhandled error while creating OmniBagMenu: {0}", ex.Message), LogLevel.Error); return(null); } }