Use a grid for the inventory

(cherry picked from commit c1ab7f7b85)
This commit is contained in:
Gouvernathor 2023-11-16 18:01:43 +01:00 committed by LoafyLemon
parent 6860614062
commit 26ecf0e6f0

View File

@ -326,6 +326,10 @@ screen inventory_menuitem(xx, yy):
action Return("inc")
# Add items
grid 9 4:
style "empty"
pos (24, 113)
for i in range(current_page*items_shown, (current_page*items_shown)+items_shown):
if i < menu_items_length:
$ row = (i // 9) % 4
@ -334,7 +338,6 @@ screen inventory_menuitem(xx, yy):
style "empty"
xsize 48
ysize 48
pos (24+58*(col), 113+58*(row))
add gui.format("interface/achievements/{}/iconbox.webp")
if current_item is not None and current_item.id == menu_items[i].id: