v1.0.7.0: Hotbar charge count on slots; fix WndProc restore on unload (left-click after disable)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-01 14:45:12 -05:00
parent 9f95fb90dd
commit d95884fe7d
8 changed files with 89 additions and 28 deletions
@@ -216,6 +216,14 @@ namespace HSUI.Interface.GeneralElements
Vector2 labelPos = new Vector2(pos.X + size.X - labelSize.X - 2, pos.Y + size.Y - labelSize.Y - 2);
DrawHelper.DrawOutlinedText(label, labelPos, 0xFFFFFFFF, 0xFF000000, drawList, 1);
}
if (Config.ShowChargeCount && !slot.IsEmpty && slot.MaxCharges > 1)
{
string chargeText = slot.CurrentCharges.ToString();
Vector2 chargeSize = ImGui.CalcTextSize(chargeText);
Vector2 chargePos = new Vector2(pos.X + 2, pos.Y + 2);
DrawHelper.DrawOutlinedText(chargeText, chargePos, 0xFFFFFFFF, 0xFF000000, drawList, 1);
}
}
}
}