parent
a6a072dcf5
commit
9d82f6109f
@ -0,0 +1,11 @@
|
||||
<div class="inventory-item">
|
||||
@if (Item != null)
|
||||
{
|
||||
@Item.DisplayName
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>Empty</p>
|
||||
}
|
||||
</div>
|
||||
|
@ -1,6 +1,33 @@
|
||||
@page "/inventory"
|
||||
@using myBlazorApp.Components
|
||||
|
||||
<h3>Inventory</h3>
|
||||
|
||||
|
||||
<div class="inventory-items">
|
||||
<InventoryItem Index="0" Item=@itemsInventory.ElementAt(0)/>
|
||||
<InventoryItem Index="1" />
|
||||
<InventoryItem Index="2" />
|
||||
<InventoryItem Index="3" />
|
||||
<InventoryItem Index="4" />
|
||||
<InventoryItem Index="5" />
|
||||
<InventoryItem Index="6" />
|
||||
<InventoryItem Index="7" />
|
||||
<InventoryItem Index="8" />
|
||||
<InventoryItem Index="9" />
|
||||
<InventoryItem Index="10" />
|
||||
<InventoryItem Index="11" />
|
||||
<InventoryItem Index="12" />
|
||||
<InventoryItem Index="13" />
|
||||
<InventoryItem Index="14" />
|
||||
<InventoryItem Index="15" />
|
||||
<InventoryItem Index="16" />
|
||||
<InventoryItem Index="17" />
|
||||
</div>
|
||||
<div class="css-grid">
|
||||
|
||||
@foreach (var item in itemsInventory)
|
||||
{
|
||||
<CraftingItem Item="item" NoDrop="true" />
|
||||
}
|
||||
</div>
|
||||
|
Loading…
Reference in new issue