Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,272 changes: 1,133 additions & 139 deletions AllChestsMenu/AllChestsMenu.cs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions AllChestsMenu/ChestData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ public class ChestData
public int originalIndex;
public int index;
public string location;
public string locationDisplayName;
public string name;
public string label;
public bool collapsed;
public Chest chest;
public ChestMenu menu;
public List<ClickableTextureComponent> inventoryButtons = new();
public Vector2 tile;
public Color chestColor; // Cor do baú para uso no fundo
public bool isFirstInLocation;
}
}
5 changes: 3 additions & 2 deletions AllChestsMenu/ChestMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ namespace AllChestsMenu
{
public class ChestMenu : InventoryMenu
{
const int columns = 12;
public int columns { get; private set; } = 12;

public ChestMenu(int xPosition, int yPosition, bool playerInventory, IList<Item> actualInventory = null, highlightThisItem highlightMethod = null, int capacity = -1, int rows = 3, int horizontalGap = 0, int verticalGap = 0, bool drawSlots = true) : base(xPosition, yPosition, playerInventory, actualInventory, highlightMethod, capacity, rows, horizontalGap, verticalGap, drawSlots)
public ChestMenu(int xPosition, int yPosition, bool playerInventory, IList<Item> actualInventory = null, highlightThisItem highlightMethod = null, int capacity = -1, int rows = 3, int horizontalGap = 0, int verticalGap = 0, bool drawSlots = true, int chestColumns = 12) : base(xPosition, yPosition, playerInventory, actualInventory, highlightMethod, capacity, rows, horizontalGap, verticalGap, drawSlots)
{
this.columns = chestColumns;
initialize(xPositionOnScreen, yPositionOnScreen, 64 * columns, 64 * rows + 16);
inventory.Clear();
for (int j = 0; j < capacity; j++)
Expand Down
Loading