More fixes

This commit is contained in:
Zeffuro
2025-12-30 01:45:28 +01:00
parent 5f73a47fee
commit 300fcee7ac
10 changed files with 47 additions and 26 deletions
@@ -36,6 +36,7 @@ public class InventoryCategoryNode : SimpleComponentNode
public event Action<InventoryCategoryNode, bool>? HeaderHoverChanged;
public Action? OnRefreshRequested { get; set; }
public Action? OnDragEnd { get; set; }
public InventoryCategoryNode()
{
@@ -239,7 +240,7 @@ public class InventoryCategoryNode : SimpleComponentNode
},
IsClickable = true,
OnDiscard = node => OnDiscard(node, data),
OnEnd = _ => System.AddonInventoryWindow.ManualInventoryRefresh(),
OnEnd = _ => OnDragEnd?.Invoke(),
OnPayloadAccepted = (node, payload) => OnPayloadAccepted(node, payload, data),
OnRollOver = node =>
{
@@ -292,7 +293,6 @@ public class InventoryCategoryNode : SimpleComponentNode
Services.Logger.Debug($"[OnPayload] Source: {sourceLocation. Container} @ {sourceLocation. Slot}");
Services.Logger.Debug($"[OnPayload] Target: {targetLocation.Container} @ {targetLocation.Slot}");
if (sourceLocation.Container.IsSameContainerGroup(targetLocation.Container))
{
Services.Logger.Debug($"[OnPayload] Source and target are in the same container group; no move performed");