Improve category matching

This commit is contained in:
Zeffuro
2025-12-28 15:26:49 +01:00
parent 98742482e3
commit e46be61b1c
6 changed files with 101 additions and 34 deletions
@@ -119,6 +119,7 @@ public class AddonCategoryConfigurationWindow : NativeAddon
listNode.AddOption(newWrapper);
RefreshSelectionList();
System.AddonInventoryWindow.ManualInventoryRefresh();
}
private void OnRemoveCategory(CategoryWrapper categoryWrapper)
@@ -134,6 +135,7 @@ public class AddonCategoryConfigurationWindow : NativeAddon
{
OnOptionChanged(null);
}
System.AddonInventoryWindow.ManualInventoryRefresh();
}
private void RefreshSelectionList()
+5 -1
View File
@@ -1,5 +1,8 @@
using AetherBags.Configuration;
using AetherBags.Inventory;
using Dalamud.Game.Text.SeStringHandling;
using KamiToolKit.Premade;
using SeStringBuilder = Lumina.Text.SeStringBuilder;
namespace AetherBags.Addons;
@@ -13,7 +16,8 @@ public class CategoryWrapper(UserCategoryDefinition categoryDefinition) : IInfoN
}
public string GetSubLabel() {
return CategoryDefinition!.Enabled ? "Enabled" : "Disabled";
if(UserCategoryMatcher.IsCatchAll(CategoryDefinition!)) return " No valid rules!";
return CategoryDefinition!.Enabled ? "✓ Enabled" : " Disabled";
}
public uint? GetId() => null;