Implement basic usercategories

This commit is contained in:
Zeffuro
2025-12-21 14:07:00 +01:00
parent 16f9311a13
commit bada2bdc8a
8 changed files with 312 additions and 32 deletions
+3 -5
View File
@@ -125,6 +125,7 @@ public class AddonInventoryWindow : NativeAddon
private void RefreshCategoriesCore(bool autosize)
{
_footerNode.SlotAmountText = InventoryState.GetEmptyItemSlotsString();
_footerNode.RefreshCurrencies();
string filter = _searchInputNode.SearchString.ExtractText();
IReadOnlyList<CategorizedInventory> categories = InventoryState.GetInventoryItemCategories(filter);
@@ -141,12 +142,9 @@ public class AddonInventoryWindow : NativeAddon
node.CategorizedInventory = data;
node.ItemsPerLine = Math.Min(data.Items.Count, maxItemsPerLine);
},
createNodeMethod: _ =>
createNodeMethod: _ => new InventoryCategoryNode
{
return new InventoryCategoryNode
{
Size = ContentSize with { Y = 120 },
};
Size = ContentSize with { Y = 120 },
});
WireHoverHandlers();