From 77ea4a351a799e5daafac9b0c039f74114ead3fc Mon Sep 17 00:00:00 2001 From: ThatOneGuyScripts <125089137+ThatOneGuyScripts@users.noreply.github.com> Date: Wed, 22 Feb 2023 16:45:07 -0600 Subject: [PATCH] Update window.py Updates gaps for the __locate_inv_slot function. This fixes the centering of sprites in the inventory slots. --- src/utilities/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/window.py b/src/utilities/window.py index cdc9e694..6e963bbe 100644 --- a/src/utilities/window.py +++ b/src/utilities/window.py @@ -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