v1.0.8.12: Item/HQ icons draw on hotbar (iconId >= 1000000 encoding)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-10 21:51:04 -05:00
parent 346969835a
commit cdffaeb168
5 changed files with 12 additions and 6 deletions
+4 -1
View File
@@ -27,7 +27,10 @@ namespace HSUI.Helpers
try
{
GameIconLookup lookup = new GameIconLookup(iconId + stackCount, false, hdIcon);
// Game encodes item icons: iconId >= 1000000 means HQ; actual icon = iconId % 1000000
uint actualIconId = iconId >= 1000000 ? (iconId % 1000000) + stackCount : iconId + stackCount;
bool itemHq = iconId >= 1000000;
GameIconLookup lookup = new GameIconLookup(actualIconId, itemHq, hdIcon);
return Plugin.TextureProvider.GetFromGameIcon(lookup).GetWrapOrDefault();
}
catch