1.0.8.2: Charge icons stay lit until all charges spent (slot recast + ActionManager). Changelog 1.0.8.1/1.0.8.2.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-07 02:01:20 -05:00
parent 61a3de4d09
commit f4912bbdb2
5 changed files with 19 additions and 11 deletions
+4 -2
View File
@@ -129,8 +129,10 @@ namespace HSUI.Helpers
(int pct, int secsLeft) = GetSlotCooldown(slot);
(int currentCharges, int maxCharges) = GetSlotCharges(slotType, actionId);
// For charge-based actions, don't grey out the icon until all charges are spent
if (maxCharges > 1 && currentCharges > 0)
// For charge-based actions, don't grey out the icon until all charges are spent.
// Use both the slot's recast-charge count and ActionManager so we catch all cases.
uint apparentCharges = slotType == RaptureHotbarModule.HotbarSlotType.Action ? slot->GetApparentIconRecastCharges() : 0;
if (maxCharges > 1 && (apparentCharges > 0 || currentCharges > 0))
usable = true;
list.Add(new SlotInfo(iconId, false, usable, pct, secsLeft, actionId, slotType, keybind, currentCharges, maxCharges));
}