Skip to content
Merged
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
5 changes: 5 additions & 0 deletions CustomBackpackApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public interface ICustomBackpackApi
public bool SetPlayerSlots(int slots, bool force);
public bool ChangeScroll(InventoryMenu menu, int delta);
public int GetScroll();
public int GetShiftRows();
}
public class CustomBackpackApi : ICustomBackpackApi
{
Expand All @@ -22,5 +23,9 @@ public int GetScroll()
{
return ModEntry.GetScroll();
}
public int GetShiftRows()
{
return ModEntry.GetShiftRows();
}
}
}
5 changes: 5 additions & 0 deletions Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ public static int GetScroll()
return scrolled.Value;
}

public static int GetShiftRows()
{
return Config?.ShiftRows ?? new ModConfig().ShiftRows;
}
Comment thread
Copilot marked this conversation as resolved.

public static void DrawUIElements(SpriteBatch b, InventoryMenu __instance)
{
int mouseX = Game1.getMouseX();
Expand Down