|
|
|
@ -28,7 +28,7 @@ namespace Blazor.Components
|
|
|
|
|
Parent.CurrentDragItem = this.Items;
|
|
|
|
|
Parent.inventory.inventoryItems[this.Index] = null;
|
|
|
|
|
this.NoDrop = false;
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("On drag start",this.Index,this));
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("On drag start",this.Index,Items.item));
|
|
|
|
|
Parent.update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -40,7 +40,7 @@ namespace Blazor.Components
|
|
|
|
|
this.Items = Parent.CurrentDragItem;
|
|
|
|
|
NoDrop = true;
|
|
|
|
|
Parent.CurrentDragItem = null;
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("On Drop",this.Index,this));
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("On Drop",this.Index,Items.item));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(Parent.CurrentDragItem == null)
|
|
|
|
@ -52,7 +52,7 @@ namespace Blazor.Components
|
|
|
|
|
this.Items = Parent.CurrentDragItem;
|
|
|
|
|
this.NoDrop= true;
|
|
|
|
|
Parent.CurrentDragItem = null;
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("On drag start",this.Index,this));
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("On drag start",this.Index,Items.item));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -61,7 +61,7 @@ namespace Blazor.Components
|
|
|
|
|
if (total >this.Items.item.StackSize)
|
|
|
|
|
{
|
|
|
|
|
this.Items.Stack = this.Items.item.StackSize;
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("On drag start",this.Index,this));
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("On drag start",this.Index,Items.item));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -73,12 +73,12 @@ namespace Blazor.Components
|
|
|
|
|
}
|
|
|
|
|
internal void OnDragEnter()
|
|
|
|
|
{
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("Drag Enter",this.Index,this));
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("Drag Enter",this.Index,Items.item));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal void OnDragLeave()
|
|
|
|
|
{
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("Drag Leave",this.Index,this));
|
|
|
|
|
Parent.Actions.Add(new InventoryAction("Drag Leave",this.Index,Items.item));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|