parent
13d78e82a7
commit
f758144ee8
@ -0,0 +1,18 @@
|
|||||||
|
@using Models;
|
||||||
|
|
||||||
|
<h3>Inventory</h3>
|
||||||
|
|
||||||
|
<div class="css-grid">
|
||||||
|
@for(int i = 0; i<InventoryList.size;i++)
|
||||||
|
{
|
||||||
|
if (inventory.InvItems[i] != null)
|
||||||
|
{
|
||||||
|
<InventoryItem item="@inventory.InvItems[i]" />
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/*Empty case*/
|
||||||
|
<h3>0</h3>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</div>
|
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
@page "/"
|
@page "/"
|
||||||
@using Blazor.Components;
|
@using Blazor.Components;
|
||||||
<div>
|
<div>
|
||||||
<Crafting Items="Items" Recipes="Recipes" />
|
<Inventory inventory="inventory"/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in new issue