Download
(7Kb)
Download
Updated: 12-01-10 12:47 PM
Pictures
File Info
Updated:12-01-10 12:47 PM
Created:10-22-10 02:59 PM
Downloads:14,722
Favorites:97
MD5:

nivBuffs  Popular! (More than 5000 hits)

Version: r24
by: Luzzifus [More]

News

I don't play WoW anymore (at least currently) and do not have an active subscription. So I cannot and will not work on my addons anymore. Sorry.

However, Calebzor has done awesome work in updating and improving this addon, including an ingame config. Check it out here!




About

nivBuffs is a replacement for blizzards default buff frames. It shows your buffs, debuffs and temporary weapon enchants.


Features

  • Using SecureAuraHeaders, so you can cancel buffs via rightclick!
  • Remaining duration can be displayed as spiral texture, bar and/or text.
  • Shows stack count for buffs/debuffs with 2 or more stacks.
  • Blinking icons for buffs/debuffs that will expire soon.
  • Sorted by time, name or spell ID.
  • Custom icon border (change the texture if you don't like it).
  • Support for custom styling with ButtonFacade.
  • Differently colored borders for temporary weapon enchants and debuffs.
  • Debuff highlighting by debuff type.

Config

There is no ingame config (at least not yet), but you can adjust appearance and behaviour in "config.lua" using a text editor.


Known Issues
  • You can cancel weapon enchants by now, but the second one still references to the first.
  • Third weapon enchant doesn't work (because of broken Blizzard code).

FAQ

Because some people still have problems with correctly setting up the anchoring and grow direction stuff, here are some examples (r14+). These are only the settings for buffs, but changing the debuffs works the same way.
lua Code:
  1. -- Anchored to topleft corner of the UI,
  2. -- growing horizontally to the right in rows of 20 icons,
  3. -- next row exactly below the previous
  4. buffAnchor = { "TOPLEFT", "UIParent", "TOPLEFT", 15, -15 },
  5. buffXoffset = 35,
  6. buffYoffset = 0,
  7. buffIconsPerRow = 20,
  8. buffMaxWraps = 10,
  9. buffWrapXoffset = 0,
  10. buffWrapYoffset = -55,
  11.  
  12. -- Anchored to topright corner of the UI,
  13. -- growing horizontally to the left in rows of 20 icons,
  14. -- next row exactly below the previous
  15. buffAnchor = { "TOPRIGHT", "UIParent", "TOPRIGHT", -15, -15 },
  16. buffXoffset = -35,
  17. buffYoffset = 0,
  18. buffIconsPerRow = 20,
  19. buffMaxWraps = 10,
  20. buffWrapXoffset = 0,
  21. buffWrapYoffset = -55,
  22.  
  23. -- Anchored to topleft corner of the UI,
  24. -- growing vertically down in rows of 15 icons,
  25. -- next row to the right of the previous
  26. buffAnchor = { "TOPLEFT", "UIParent", "TOPLEFT", 15, -15 },
  27. buffXoffset = 0,
  28. buffYoffset = -35,
  29. buffIconsPerRow = 15,
  30. buffMaxWraps = 10,
  31. buffWrapXoffset = 35,
  32. buffWrapYoffset = 0,
  33.  
  34. -- Anchored to bottomleft corner of the UI,
  35. -- growing vertically up in rows of 15 icons,
  36. -- next row to the right of the previous
  37. buffAnchor = { "BOTTOMLEFT", "UIParent", "BOTTOMLEFT", 15, 250 },
  38. buffXoffset = 0,
  39. buffYoffset = 35,
  40. buffIconsPerRow = 15,
  41. buffMaxWraps = 10,
  42. buffWrapXoffset = 35,
  43. buffWrapYoffset = 0,
  44.  
  45. -- Anchored to the topleft corner of the minimap,
  46. -- growing vertically down in rows of 15 icons,
  47. -- next row to the left of the previous
  48. buffAnchor = { "TOPRIGHT", "Minimap", "TOPLEFT", -25, 0 },
  49. buffXoffset = 0,
  50. buffYoffset = -35,
  51. buffIconsPerRow = 15,
  52. buffMaxWraps = 10,
  53. buffWrapXoffset = -35,
  54. buffWrapYoffset = 0,
If you need in-depth info about anchoring, read this and this.


TODO
  • Add third weapon enchant (as soon as Blizzard fixes their code base).
  • Consolidation (as soon as Blizzard fixes their code base).

Credits

A big "Thank You!" goes to sigg, as he posted this nice tutorial on SecureAuraHeaders in the forums.

r24
- Debuff border coloring now also works with ButtonFacade.

r23
- Removed experimental code that caused more taint errors.
- Added position offset settings for duration text.

r21
- Fixed taint errors with enabled ButtonFacade.
- Added separate font color settings for duration text and stack counter.
- Added position settings for stack counter.

r20
- Fixed that garbage thingy -> mem usage should stay low now.
- Due to patch 4.0.3 the following things now properly work (at least): canceling weapon enchants, sorting and disabling "separateOwn" attribute.

r19
- Added ButtonFacade support (disabled by default, requires ButtonFacade r344+).
- Added options to adjust font, font size and font style.

r17
- The duration spiral doesn't overlap the border anymore.
- Added duration bars inside of the icons.
- Added option to toggle duration bars.
- Added option to toggle duration text timers.

r15
- Added some options which allow vertical growth and more.
- Duration text now can also be placed to the left or right of the icon.
- Removed "(de)buffGrowDir" options (you can still change it).
- If you have problems setting it up as you wish, check out the example configs on the description page!

r12
- Fixed duration spirals (again).
- Set "separateOwn" header attribute. So whenever blizz fixes their wonderful code, this will actually make your own buffs not be separated from the others.. *cough*
- Fixed buffs/debuffs not hiding when the whole interface is hidden (ALT+Z).
- Random code improvements.

r10
- Added debuff border coloring by debuff type.
- Added separate scale option for debuffs.
- Nicer border via SetBackdrop.
- Border doesn't look awkward anymore when the icon is blinking.
- Stack counter stays opaque when the icon is blinking.
- Increased maximum number of rows to 10.

r9
- Duration spiral can be turned off again.
- Added option for brightness of the default non-colored icon border.
- Remaining time text matches the tooltip time now.

r8
- Even further reduced CPU usage.
- New blinking algorithm.
- Added option to adjust blinking speed.
- Fixed border color error of second weapon enchant (correct icons, tooltip still broken, blame Blizzard).

r7
- Added different border coloring for temporary weapon enchants (item quality) and debuffs (darkred).
- Added option to disable these colored borders.
- Added cooldown spiral for temporary weapon enchants.
- New border texture.
- Reduced CPU usage.
- Removed updateDelay option (not longer neccessary).

r6
- Removed experimental code that caused an error in the SecureAuraHeader code.
- Fixed bug that hides stack count when the cooldown spiral is disabled.

r4
- Growth direction for Dummies.
- Added option to hide cooldown spirals.

r3
- Fixed cooldown spiral overlaying the stack count.
- Fixed cooldown spiral disappearing.
- Added more detailed positioning/anchoring options.
- Added options for font color, update interval and temporary weapon enchants.
Post A Reply Comment Options
Unread 10-27-10, 02:30 PM  
kbc8090
A Murloc Raider

Forum posts: 6
File comments: 73
Uploads: 0
Originally posted by Luzzifus
Sorry but that doesn't look good at all.. Most of the border is not visible anymore.


It's not so much about the secure headers, but I don't know either.

Concerning the remaining time and spiral textures, I have already fixed it, uploading soon.
Yeah, I forgot I used my own texture, disregard

Well in bBuffs it just gets the global from the aura like:

local border = _G[buff.."Border"]

then you're able to just hide it like: if border then border:Hide() end

It could be that it catches the actual buff icon as well and redraws it with :

local icon = _G[buff.."Icon"]

icon:SetTexCoord(.1, .9, .1, .9)
icon:SetDrawLayer("OVERLAY")

EDIT:

Yeah, seems if you mess with:

btn.tex:SetTexCoord(.1, .9, .1, .9) [with whatever values you want] -- You might be able to get something that looks decent, but since the alpha of the overlay completely goes to 0 it seems it still looks odd even without a border. But I typically don't play with the flashing buffs since it's annoying, but some people might think it looks better.

You may want to explore the option of using SetBackdrop instead of SetTexture, simply because of how SetTexture scales and doesn't look as good. Zorks new mod rSetBackdrop kind of explains it.

Here's a comparison between the two... 1st pic is nivBuffs, 2nd is bBuffs using SetBackdrop, both using the same texture.





One last suggestion would be to add separate scales for buffs/debuffs, I'm sure some people might like to make their debuffs larger than their buffs.

All in all I'm just waiting for debuff border coloring and this mod will be perfect :]
Last edited by kbc8090 : 10-27-10 at 08:28 PM.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 12:56 PM  
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 237
Uploads: 6
Originally posted by kbc8090
use this for the overlay cord positions, makes it look much better.

btn.overlay:SetTexCoord(0.05,0.95,0.05,0.95)
Sorry but that doesn't look good at all.. Most of the border is not visible anymore.

Originally posted by kbc8090
In any event, hiding the default border will make it look even better since when the icons flash it alphas out the overlay to the point where you can see the default ugliness that is the default borders. I don't really know how to do this with all this secureheader code .
It's not so much about the secure headers, but I don't know either.

Concerning the remaining time and spiral textures, I have already fixed it, uploading soon.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 11:58 AM  
kbc8090
A Murloc Raider

Forum posts: 6
File comments: 73
Uploads: 0
use this for the overlay cord positions, makes it look much better.

btn.overlay:SetTexCoord(0.05,0.95,0.05,0.95)

In any event, hiding the default border will make it look even better since when the icons flash it alphas out the overlay to the point where you can see the default ugliness that is the default borders. I don't really know how to do this with all this secureheader code .

@Ael -- change the tS line to:

local tS = (hrs >= 1) and hrs.."h" or ( (mins >= 5) and mins.."m" or (secs .."s" ) )
Last edited by kbc8090 : 10-27-10 at 12:46 PM.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 06:08 AM  
Ael
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Back again!

I wonder if displaying seconds as "6 s" instead of "0:06" would be possible (and also help solve the buff/tooltip timer correlation).
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 10:37 PM  
brotherhobbes
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 313
File comments: 41
Uploads: 2
Originally posted by Ael
However, it seems I can't turn the spiral cooldown off in r8 at all.
Same issue.
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 03:25 PM  
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view AddOns

Forum posts: 221
File comments: 68
Uploads: 7
Originally posted by wingsofscion
Currently only getting one weapon enhancement to show (and no duration on it):

http://i54.tinypic.com/2ymvmg9.jpg

As you can see in the screenshot, both weapons have Flametongue. Here's the odd bit: mousing over that empty space between the weapon enhancement and the buff, it shows the tooltip for the main hand weapon, though no icon displays for either main hand or offhand weapon.

Thanks for the addon, by the way, seems to be working just fine otherwise.
I might be wrong, but this seems to be a (known) Blizzard-issue. The Aura-code seems to be buggy - but at least incomplete... Addon-authors are doing their best to provide sufficient solutions, but we're limited to what Blizz provides us with...

Btw: great Work on this one, I currently trying to fix Buffology, but this fucking API seems to - hate me...
__________________
Last edited by Mischback : 10-26-10 at 03:25 PM.
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 02:03 PM  
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 237
Uploads: 6
Ok, I'll look into it myself. Tomorrow. Maybe. WTB time.
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 01:58 PM  
Ael
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Actually, that didn't work at all. When there are minutes left everything looks good. However, when there are seconds left, say 5 secs, it'll say 1:05

Can't make it work! Enough noobtinkering on my part, I'm going to bed.
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 01:28 PM  
Ael
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Ah, a little tinkering made it work

lua Code:
  1. local mins = ceil(secs / 60)
  2. local hrs = floor(mins / 60)


However, it seems I can't turn the spiral cooldown off in r8 at all.
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 01:08 PM  
Ael
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
No babies? Aww, man...

Anywho, I tried both of those, but couldn't make it work.

lua Code:
  1. local mins = ceil(secs / 60)
  2. local hrs = ceil(mins / 60)
This one makes all the timers say "1 h" and also turns the spiral back on (even though I've turned it off).

lua Code:
  1. local mins = floor(secs / 60 + 0.5)
  2. local hrs = floor(mins / 60 + 0.5)
This one is correct half the time

Any other ideas?
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 12:46 PM  
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 237
Uploads: 6
Originally posted by Ael
Dear Luzzifus

Please marry me and have my babies. If you're male, don't worry, we can work something out.
I appreciate the compliment, but since we're both male I don't have any intentions to work something out.

Originally posted by Ael
What I want is for the time remaining on the buff to correspond to the time remaining in the tooltip. So instead of "2 m" I want "3 m" under the buff icon. Any chance you can show me how to do that in the .lua? Pretty please?
Wel basically the tooltip time is rounded differently from mine. So it would come down to these two lines in the function "formatTimeRemaining":
lua Code:
  1. local mins = floor(secs / 60)
  2. local hrs = floor(mins / 60)
I'm always rounding down. If you want to round up, change it to this:
lua Code:
  1. local mins = ceil(secs / 60)
  2. local hrs = ceil(mins / 60)
If you want to round to the nearest whole number, change it to this:
lua Code:
  1. local mins = floor(secs / 60 + 0.5)
  2. local hrs = floor(mins / 60 + 0.5)
I'm not sure which of these makes the numbers match, just try both.
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 12:33 PM  
Ael
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Dear Luzzifus

Please marry me and have my babies. If you're male, don't worry, we can work something out.

I've been using Satrina's for the longest time, however the only thing I want from my buffmod is the ability to move the frames and also sort them after time. I don't need none of that fancy stuff, and here you go and make the perfect mod for me!

One thing however, aside from singing your praises: I've been fooling around with nivBuffs.lua, but I don't really know what I'm doing. I can't for the life of me figure out how to display the time remaining on buffs the way I want them to be displayed. Pictures say more more than a thousand words:

http://img198.imageshack.us/img198/6614/buffr.jpg

What I want is for the time remaining on the buff to correspond to the time remaining in the tooltip. So instead of "2 m" I want "3 m" under the buff icon. Any chance you can show me how to do that in the .lua? Pretty please?
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 05:10 AM  
Naitaeti
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 38
Uploads: 6
Originally posted by Luzzifus
The tooltips represent the data of the buffs in the SecureAuraHeader. If they match my icons and timers, it's nothing I can fix.

Btw, did you re-enable the OmniCC timers manually or is that another addon which adds the second timers in the middle of the buttons?
Ok, probably Blizzards fault then.

The cool down is probably from tullaCooldownCount
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 04:55 AM  
wingsofscion
A Defias Bandit
 
wingsofscion's Avatar

Forum posts: 2
File comments: 13
Uploads: 0
Currently only getting one weapon enhancement to show (and no duration on it):

http://i54.tinypic.com/2ymvmg9.jpg

As you can see in the screenshot, both weapons have Flametongue. Here's the odd bit: mousing over that empty space between the weapon enhancement and the buff, it shows the tooltip for the main hand weapon, though no icon displays for either main hand or offhand weapon.

Thanks for the addon, by the way, seems to be working just fine otherwise.
Last edited by wingsofscion : 10-26-10 at 04:59 AM.
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 04:28 AM  
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 237
Uploads: 6
The tooltips represent the data of the buffs in the SecureAuraHeader. If they match my icons and timers, it's nothing I can fix.

Btw, did you re-enable the OmniCC timers manually or is that another addon which adds the second timers in the middle of the buttons?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: