View Single Post
02-02-09, 06:06 PM   #2584
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Originally Posted by AsheruWolf View Post
Ok the good news is it now just shows the 1 rank of each spell bad news is the timers that should be under the spell are way off. (Shaman shocks also show all shocks as on cooldown was this intended?)
Okay... let's start with the timers... I cannot reproduce this problem and am at a *complete* loss as to what might be the cause of it unless it is related to having too many icons displayed. Maybe? I'll work on sorting that out. Does it do it no matter how many icons you have? Which HUD mode are you using?

Shamman... yeah... umm... that's the one class I have that I can't test with as my shammy is only lvl 10. /sigh

The way the cooldown bar works is it scans your spellbook when you log, or learn a new spell, for all of the spells you know that are not passive spells. It then loops through those spells once per pulse (whatever your nUI framerate is -- 30fps for most people unless you modified it with the slash command) and checks to see if *any* of your spells are on cooldown.

Every spell that is on cooldown is placed in a list by name and rank with the amount of time remaining before it is ready to cast again. That list is then compressed by spell name to only display the highest rank you know for that spell. In the end, you end up with one icon at the highest rank for every spell in your spellbook which is on cooldown.

Now... with my lock, my hunter, my shadow priest and my pally, that's never more than four or five spells. I do not own a druid and my shammy is only 10, so I can't comment on those and, to be honest, I haven't tested with my mage or rogue because, frankly, I didn't think to.

How many icons are we talking about for a shammy?

I'm not sure how to fix this while still avoiding having to maintain predefined tables of spells (which means this tool would break every time Bliz changes the spellbook).
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/