Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Update window.py
Browse files Browse the repository at this point in the history
Updates gaps for the __locate_inv_slot function. This fixes the centering of sprites in the inventory slots.
  • Loading branch information
ThatOneGuyScripts authored Feb 22, 2023
1 parent c0d4f25 commit 77ea4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def __locate_inv_slots(self, cp: Rectangle) -> None:
"""
self.inventory_slots = []
slot_w, slot_h = 36, 32 # dimensions of a slot
gap_x, gap_y = 5, 3 # pixel gap between slots
gap_x, gap_y = 6, 4 # pixel gap between slots
y = 44 + cp.top # start y relative to cp template
for _ in range(7):
x = 40 + cp.left # start x relative to cp template
Expand Down

0 comments on commit 77ea4a3

Please sign in to comment.