18 lines
678 B
Plaintext
Raw Normal View History

2017-10-05 08:26:07 +00:00
component Inventory(inventory *arn.Inventory, viewUser *arn.User, user *arn.User)
ShopTabs(user)
2017-10-05 11:48:16 +00:00
h1.page-title Inventory
2017-10-05 07:39:37 +00:00
.inventory(data-api="/api/inventory/" + viewUser.ID)
2017-10-04 11:39:59 +00:00
for index, slot := range inventory.Slots
if slot.ItemID == ""
.inventory-slot.mountable(draggable="false", data-index=index)
else
2018-04-18 11:42:38 +00:00
.inventory-slot.tip.mountable(aria-label=slot.Item().Name, draggable="true", data-index=index, data-item-id=slot.ItemID, data-consumable=slot.Item().Consumable)
2018-04-08 20:10:45 +00:00
.shop-item-icon
2017-10-06 10:44:55 +00:00
Icon(slot.Item().Icon)
2017-10-04 11:39:59 +00:00
if slot.Quantity > 1
2017-10-06 06:44:29 +00:00
.inventory-slot-quantity= slot.Quantity
.footer.mountable
2017-10-06 06:44:29 +00:00
p You can consume items by double-clicking them.