Add per-frame reverse toggle for cooldown sweeps

This commit is contained in:
Brues
2026-10-25 20:24:12 -05:00
parent 0e428de74c
commit d9e74b3bc5
8 changed files with 29 additions and 1 deletions
+6
View File
@@ -142,6 +142,12 @@ pfUI:RegisterModule("cooldown", function ()
this:SetAlpha(0)
end
-- reversed sweep direction (ClassicAPI backports SetReverse with the
-- modern Cooldown frame; stock Model swipes don't have it, so guard it)
if this.pfCooldownReverse == 1 and this.SetReverse then
this:SetReverse(true)
end
-- print time as text on cooldown frames
if ( not this.pfCooldownStyleText or this.pfCooldownStyleText == 1)
and start > 0 and duration > 0 and (not enable or enable > 0) then