The API is no longer being updated here until further notice. |
Shows a cooldown animation on a cooldown frame using UNIX time.
obj:SetCooldownUNIX(start, duration[, modRate])
Arguments[]
- start
- Number - The time when the cooldown started in UNIX time (as returned by time()). Zero if no cooldown.
- duration
- Number - Cooldown duration in seconds. Zero if no cooldown.
- modRate
- Number - The rate at which the animation should be updated.
Details[]
- Calling this method will automatically show/hide the Cooldown widget. The widget, unless the animation is reversed, will also hide itself automatically when the animation completes.
- As this function uses UNIX time, which updates in seconds, the cooldown will do the same. Compared to the smooth transition of Cooldown:SetCooldown, Cooldown:SetCooldownUNIX will cause the cooldown the jump forward every second.