Suggestion: Buff Timers #108

Open
Haleth opened this Issue Dec 5, 2011 · 10 comments

2 participants

@Haleth

Seems like a new interface element introduced in 4.3. It appears at some Darkmoon Faire games and shares a lot with the alt power bar, but both can be shown at the same time.

https://github.com/tekkub/wow-ui-source/blob/ptr/FrameXML/UnitPowerBarAlt.lua

http://img847.imageshack.us/img847/5107/wowscrnshot120511095336.jpg

@ghost

Correct me if I'm wrong, but as far I've seen its purely visual and doesnt give any useful information.

@Haleth

It actually does. There is no other way to see your time remaining otherwise. The counter below that (which is, actually, the AltPowerBar) shows the current/maximum of the objective you need, not the time.

@ghost

I was talking about the counter, not the AltPowerBar itself.
As for the cur/max of objective, you have that in the questlog already, even more readable.

@Haleth

The top bar is the buff timer I'm talking about, and is the only representation of the time remaining.

@ghost

Yeah, that one should be covered by the AltPowerBar element. The bottom one (the counter) I don't know, as it seems like its just for show.

@Haleth

The bottom one -is- the AltPowerBar, surprisingly (and is also covered by the element). The buff timer, however, isn't. Hence the suggestion.

@haste
Owner

Was planning on having a look at it today, but yesterday was apparently the last day of darkmoon fair. I'm not really sure how I should support it either, might just make it its own element.

@ghost

Darkmoon Faire is back again, so I went to investigate.

The bar is called BuffTimerN, and is part of the CounterBar elements of UnitPowerBarAlt.
https://github.com/tekkub/wow-ui-source/blob/live/FrameXML/UnitPowerBarAlt.lua#L705-824

Events:
UNIT_POWER_BAR_TIMER_UPDATE (arg1 = unit)

Functions:
duration, expiration, barID, auraID = UnitPowerBarTimerInfo(unit, index)

I'm going to write a test element and see how that works out, probably naming it CounterBar.

@ghost

Finished the element, although it might not be an optimal solution to all the power bars implemented in 4.3.

The AltPowerBar element by Blizzard handles a wide range of different stuff, which all are running of the same few events.
The elements I'm talking about is the following:

  • Horizontal statusbar
  • Vertical statusbar
  • Circular statusbar
  • Counters (like the one shown under the statusbar in op's screenshot, counting points)
  • "Pills" (used for the ring toss daily in Darkmoon Faire)

I will leave my finished element just in case.
https://gist.github.com/1771480

@Haleth

Any chance of getting this implemented? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment