View Single Post
03-12-13, 06:30 PM   #3
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
SetCooldown

He's adding a cooldown on top of the playerframe for the example.
You would do the same for your frames.

If you want to do that in .xml you'd add a Cooldown as a child of your frame something like this:
Code:
<Frame name="YourFrameNameHere">
 <Frames>
  <Cooldown name="$parentCD" inherits="CooldownFrameTemplate" parentKey="cooldown" />
 </Frames>
</Frame>
The inherits and parentKey attributes are optional, parentKey makes it so you have a reference to your cooldown frame on its parent ie _G["YourFrameNameHere"].cooldown let's you run methods on the cooldown.
  Reply With Quote