/// <summary>
 /// Gets a <see cref="Rectangle"/> that correctly represents the real bounds of the given <see cref="StardewValley.Menus.InventoryMenu"/>.
 /// </summary>
 /// <returns>The correct bounds of the given <see cref="StardewValley.Menus.InventoryMenu"/>.</returns>
 public static Rectangle GetNormalizedInventoryMenuBounds(this StardewValley.Menus.InventoryMenu menu)
 {
     return(new Rectangle(
                menu.xPositionOnScreen,
                menu.yPositionOnScreen - 4,
                menu.width,
                menu.height - 4
                ));
 }
 /// <summary>
 /// Gets a <see cref="Rectangle"/> to wrap the given <see cref="StardewValley.Menus.InventoryMenu"/> using '<see cref="StardewValley.Game1.drawDialogueBox(Int32, Int32, Int32, Int32, Boolean, Boolean, String, Boolean, Boolean, Int32, Int32, Int32)"/>'.
 /// </summary>
 /// <returns>A <see cref="Rectangle"/> that can be used to draw a dialogue box around the given menu.</returns>
 public static Rectangle GetRectangleForDialogueBox(this StardewValley.Menus.InventoryMenu menu)
 {
     return(new Rectangle(
                menu.xPositionOnScreen - 36,
                menu.yPositionOnScreen - StardewValley.Menus.IClickableMenu.spaceToClearTopBorder - 8,
                menu.width + StardewValley.Menus.IClickableMenu.borderWidth + 32,
                menu.height + StardewValley.Menus.IClickableMenu.spaceToClearTopBorder + 36
                ));
 }
 public static void draw(this StardewValley.Menus.InventoryMenu menu, SpriteBatch b, Color slotBorderColour)
 {
     menu.draw(b, slotBorderColour.R, slotBorderColour.G, slotBorderColour.B);
 }