Merge pull request 'aurian' (#2) from aurian into master
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
Reviewed-on: #2master
commit
9603ddbbdd
@ -0,0 +1,23 @@
|
|||||||
|
@using Models;
|
||||||
|
|
||||||
|
<h3>Inventory</h3>
|
||||||
|
<CascadingValue Value="@this">
|
||||||
|
<div class="css-grid">
|
||||||
|
@for(int i = 0; i<InventoryList.size;i++)
|
||||||
|
{
|
||||||
|
@if (inventory.inventoryItems[i] != null)
|
||||||
|
{
|
||||||
|
<ItemInventory items="@inventory.inventoryItems[i]" Index="@i" NoDrop=true />
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<ItemInventory items="@inventory.inventoryItems[i]" Index="@i"/>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div>Actions</div>
|
||||||
|
<div class="actions" id="actions">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CascadingValue>
|
@ -0,0 +1,22 @@
|
|||||||
|
<div class="item"
|
||||||
|
ondragover="event.preventDefault();"
|
||||||
|
@ondragstart="@OnDragStart"
|
||||||
|
@ondrop="@OnDrop"
|
||||||
|
@ondragenter="@OnDragEnter"
|
||||||
|
@ondragleave="@OnDragLeave">
|
||||||
|
@if(Items != null)
|
||||||
|
{
|
||||||
|
@if(!string.IsNullOrWhiteSpace(Items.item.ImageBase64))
|
||||||
|
{
|
||||||
|
<img src="data:image/png;base64, @(Items.item.ImageBase64)" class="img-thumbnail" title="@Items.item.DisplayName" alt="@Items.item.DisplayName" style="width: 50px;" />
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<img src="images/default.png" class="img-thumbnail" title="@Items.item.DisplayName" alt="@Items.item.DisplayName" style="width: 50px; height: 50px" />
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAINJREFUeF7t18ENACAMAzE6OuLD1jDImREiGitz9n0r/EYAfoAT0AHhDlxKkAIUoAAFKBBOAIMYxCAGMRhGwBjCIAYxiEEMYjCcAAYxiEEMYjCMgDWIQQxiEIMYxGA4AQxiEIMYxGAYAWsQgxjEIAYxiMFwAhjEIAYxiMEwAtYgBusMfuMLowEYJcXzAAAAAElFTkSuQmCC" class="img-thumbnail" title="empty" alt="empty slot" style="width: 50px; height: 50px" />
|
||||||
|
}
|
||||||
|
</div>
|
@ -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