bug congired

master
Aurian JAULT 2 years ago
parent 9cb1d36242
commit b535946d5c

@ -11,7 +11,7 @@
}
else
{
<ItemInventory items="@inventory.inventoryItems[i]" Index="@i"/>
<ItemInventory items="@inventory.inventoryItems[i]" Index="@i" NoDrop=false/>
}
}
</div>

@ -28,6 +28,7 @@ namespace Blazor.Components
Parent.CurrentDragItem = this.Items;
Parent.inventory.inventoryItems[this.Index] = null;
this.NoDrop = false;
if (this.Items == null) return;
Parent.Actions.Add(new InventoryAction("On drag start",this.Index,Items.item));
Parent.update();
}
@ -40,6 +41,7 @@ namespace Blazor.Components
this.Items = Parent.CurrentDragItem;
NoDrop = true;
Parent.CurrentDragItem = null;
if (this.Items == null) return;
Parent.Actions.Add(new InventoryAction("On Drop",this.Index,Items.item));
return;
}

Loading…
Cancel
Save