Use a grid for the inventory
This commit is contained in:
parent
837d6b378e
commit
c1ab7f7b85
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user