Cooldown:SetCooldownDuration
Jump to navigation
Jump to search
Shows a cooldown animation starting from the moment the function is called.
Cooldown:SetCooldownDuration(duration [, modRate])
Arguments
- duration
- number - Cooldown duration in seconds. Zero if no cooldown.
- modRate
- number?
= 1
- 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.