Widget/API/SetCooldown

__NOTOC__
Sets and begins the cooldown sweep on a texture.
MyTexture:SetCooldown(duration,remaining);
== Parameters ==
=== Arguments ===
:;duration
::number - Time, in seconds, the cooldown should last for.
:;remaining
::number - Time, in seconds, that remains on the cooldown.
=== Returns ===
:;None
== Example ==
texture:SetCooldown(10,10);
== Notes ==
The actual cooldown sweep is handled by the game engine itself. This merely tells the game engine the total and current time of the sweep.
== Related Pages ==
* Widget (Overview)
Category:Widget/API Category:Widget/Class/Texture