View Single Post
08-24-14, 12:59 PM   #2
Cybeloras
A Fallenroot Satyr
 
Cybeloras's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 28
Originally Posted by MaLarsson View Post
Is there a better widget to use for the castbar
No, StatusBar is what you want (unless you want to create your own from scratch using a frame and some textures, which would be overkill for your use case).

Originally Posted by MaLarsson View Post
do I manually need to update the duration of the StatusBar with StatusBar:SetValue(value)?
Yes. Use StatusBar:SetMinMaxValues(min, max) to set the duration of the effect (min should be 0, max should be the length of the DoT). And then use StatusBar:SetValue(value) in the frame's OnUpdate handler to set how many seconds have passed since the DoT was applied.
  Reply With Quote