From ac782aa5bbb2cbe95edadd3dd34876bf197d2bd5 Mon Sep 17 00:00:00 2001 From: Shawrkie Williams Date: Wed, 4 Feb 2026 17:47:57 -0500 Subject: [PATCH] Adds external category search Extends the inventory filter to include searching through external category tags provided by other mods. --- AetherBags/Inventory/Categories/InventoryFilter.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AetherBags/Inventory/Categories/InventoryFilter.cs b/AetherBags/Inventory/Categories/InventoryFilter.cs index a35f7f6..6dddfde 100644 --- a/AetherBags/Inventory/Categories/InventoryFilter.cs +++ b/AetherBags/Inventory/Categories/InventoryFilter.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Text.RegularExpressions; using AetherBags.Helpers; using AetherBags.Inventory.Items; +using AetherBags.IPC.ExternalCategorySystem; namespace AetherBags.Inventory.Categories; @@ -46,6 +47,11 @@ public static class InventoryFilter isMatch = info.Name.Contains(filterString, StringComparison.OrdinalIgnoreCase) || info.DescriptionContains(filterString); } + if (!isMatch) + { + isMatch = ExternalCategoryManager.MatchesSearchTag(info.Item.ItemId, filterString); + } + if (isMatch != invert) filtered.Add(info); }