public ComposeLetter(string toPlayerId, List <Item> inventory, int capacity, int rows = 3, ComposeLetter.behaviorOnItemChange itemChangeBehavior = null, InventoryMenu.highlightThisItem highlightMethod = null) : base(highlightMethod, true, false, 0, 0) { this.toFarmerId = toPlayerId; this.itemChangeBehavior = itemChangeBehavior; int num1 = Game1.tileSize * (capacity / rows); this.ItemsToGrabMenu = new InventoryMenu(Game1.viewport.Width / 2 - num1 / 2, this.yPositionOnScreen + Game1.tileSize, false, inventory, (InventoryMenu.highlightThisItem)null, capacity, rows, 0, 0, true); }
public ComposeLetter(IMonitor monitor, string toCharacterName, List <Item> inventory, int capacity, int rows = 3, ComposeLetter.behaviorOnItemChange itemChangeBehavior = null, InventoryMenu.highlightThisItem highlightMethod = null) : base(highlightMethod, true, false, 0, 0) { this.Monitor = monitor; this.toCharacterName = toCharacterName; this.itemChangeBehavior = itemChangeBehavior; int num1 = Game1.tileSize * (capacity / rows); int tileSize = Game1.tileSize; int num2 = Game1.tileSize / 4; this.ItemsToGrabMenu = new InventoryMenu(Game1.viewport.Width / 2 - num1 / 2, this.yPositionOnScreen + Game1.tileSize, false, inventory, (InventoryMenu.highlightThisItem)null, capacity, rows, 0, 0, true); }