06-05-11, 04:49 AM | #1 |
Totem-module with statusbars
The Totem-module of oUF handles totems by default with an icon a cooldown spiral.
For a current project I wanted the remaining duration to be displayed as statusbars, as it has been done with oUF_boring_totembar. Here's my solution, thought I share it: In your layout-file (in the section of the player-frame, for my layout), build a totem-layout (I stripped down mine a lot, this is poc-quality): lua Code:
As you can see, I override the default-Update-function, so here it is: lua Code:
You may of course throttle the update as you want it to be.
__________________
|
|
06-05-11, 01:07 PM | #2 |
@Mischback
FIRE_TOTEM_SLOT and so on translate to the corresponding totem id, so you could use a for loop for creating the totems. Here is what I use in my layout in case someone is interested. This is what I do: lua Code:
and the postupdate function: lua Code:
Probably using Override instead of PostUpdate makes more sense, I'll take a look at it later. |
|
WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Totem-module with statusbars |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|