Still need subscribe for events done through contextmenu etc

This commit is contained in:
Zeffuro
2026-01-11 18:30:43 +01:00
parent ad109210bb
commit 5f6fa7ff2f
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ public unsafe class AddonInventoryWindow : InventoryAddonBase
LayoutContent(); LayoutContent();
//addon->SubscribeAtkArrayData(1, (int)NumberArrayType.Inventory); addon->SubscribeAtkArrayData(1, (int)NumberArrayType.Inventory);
System.LootedItemsTracker.OnLootedItemsChanged += OnLootedItemsChanged; System.LootedItemsTracker.OnLootedItemsChanged += OnLootedItemsChanged;
+3 -2
View File
@@ -1,6 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Numerics; using System.Numerics;
using AetherBags.AddonLifecycles;
using AetherBags.Configuration; using AetherBags.Configuration;
using AetherBags.Helpers; using AetherBags.Helpers;
using AetherBags.Inventory; using AetherBags.Inventory;
@@ -442,7 +443,7 @@ public abstract unsafe class InventoryAddonBase : NativeAddon, IInventoryWindow
} }
} }
/*
protected override void OnRequestedUpdate(AtkUnitBase* addon, NumberArrayData** numberArrayData, StringArrayData** stringArrayData) protected override void OnRequestedUpdate(AtkUnitBase* addon, NumberArrayData** numberArrayData, StringArrayData** stringArrayData)
{ {
_requestedUpdateCount++; _requestedUpdateCount++;
@@ -456,7 +457,7 @@ public abstract unsafe class InventoryAddonBase : NativeAddon, IInventoryWindow
InventoryState.RefreshFromGame(); InventoryState.RefreshFromGame();
RefreshCategoriesCore(autosize: true); RefreshCategoriesCore(autosize: true);
} }
*/
protected override void OnSetup(AtkUnitBase* addon) protected override void OnSetup(AtkUnitBase* addon)
{ {