2017-10-04 06:12:12 +00:00
|
|
|
component Inventory(inventory *arn.Inventory)
|
|
|
|
ShopTabs
|
|
|
|
.inventory
|
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
|
|
|
|
.inventory-slot.mountable(title=slot.Item().Name, draggable="true", data-index=index)
|
|
|
|
Icon(slot.Item().Icon)
|
|
|
|
if slot.Quantity > 1
|
|
|
|
.inventory-slot-quantity= slot.Quantity
|