Cooldown:SetCooldownUNIX

From Warcraft Wiki
Jump to navigation Jump to search

Shows a cooldown animation using UNIX time.

Cooldown: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? = 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.
  • 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.