Download
(4 Kb)
Download
Updated: 10-18-10 01:00 PM
Addon for:
oUF.
Pictures
File Info
Updated:10-18-10 01:00 PM
Created:unknown
Downloads:27,120
Favorites:169
MD5:
oUF Debuff Highlight  Popular! (More than 5000 hits)
Version: r50-release
by: Ammo [More]
This is an addon that adds Debuff Highlighting to the oUF unitframes.

Whenever a unit has a debuff it will highlight the frame in the debuff color. This can be done either on
the unitframe background or a specially created frame for the task.

To use this in your oUF layout you will need one of the following:

Code:
self.DebuffHighlightBackdrop = true
This will let oUF_DebuffHighlight know to use the backdrop for debuff highlighting. The original color and alpha
of the backdrop and backdrop border will be stored and whenever the unit needs highlighting it will color the
backdrop and backdrop border in corresponding color and set the alpha. When the debuff is gone the original
color and alpha will be restored.

The other option to add Debuff Highlighting is to provide a texture (or other UI type that supports :SetVertexcolor)
on your unit frame.

Code:
local dbh = self:CreateTexture(nil, "OVERLAY")
dbh:SetAllPoints(self)
dbh:SetTexture("SomeKindOfTexturepath")
dbh:SetBlendMode("ADD")
dbh:SetVertexColor(0,0,0,0) -- set alpha to 0 to hide the texture
self.DebuffHighlight = dbh
Be warned, your healthbar is probably the best place to create a full glow texture:
Code:
local dbh = hp:CreateTexture(nil, "OVERLAY")
Because all your unit UI elements will be covering your unitframe (self) most likely.

This frame will now be used with :SetVertexColor() to highlight debuffs.

You can control the alpha of the debuff highlight on backdrop or debuffhighlight frame by setting:

Code:
self.DebuffHighlightAlpha = .5
The default value is .5 for the highlight frame and 1 for the backdrop.

If you only want to highlight debuffs that you can cure:

Code:
self.DebuffHighlightFilter = true
This is off by default.

If you want to use the actual texture of the debuff to show instead of coloring the frame do the following:

Create the self.DebuffHighlight texture and positionit, make sure it's visible (alpha not set to 0):

Code:
local dbh = hp:CreateTexture(nil, "OVERLAY")
dbh:SetWidth(32)
dbh:SetHeight(32)
dbh:SetPoint("CENTER", self, "CENTER")
self.DebuffHighlight = dbh
And set:

Code:
self.DebuffHighlightUseTexture = true

Enjoy

-Ammo
r50-release
- fix proper debuff color per class thanks elv22

r48-release
- 4.0 toc
- add option to only color backdropborder or backdrop or backdrop&border

r44-release
- 3.1 compatible release

r41-release
- fixes for nil errors now uses AddElement

r36-release
- Wotlk update

r79326
- Update for latest oUF

r72358
- Fixes issue with not highlighting a debuff if all previous debuffs had no type.

r72075
- Fix debuffhighlight not working for units that don't have buffs/debuff display enabled
- Add support for using the debuff icon texture instead of coloring a frame

r72066
- Only highlight units that the player can interact with for curing

r72056
- Initial upload to wowinterface
Archived Files (4)
File Name
Version
Size
Author
Date
r48-release
3kB
Ammo
10-16-10 08:06 AM
r44-release
3kB
Ammo
04-30-09 05:12 AM
r41-release
4kB
Ammo
01-06-09 06:00 AM
r36-release
4kB
Ammo
12-23-08 04:48 AM


Post A Reply Comment Options
Old 04-29-08, 07:03 AM  
Neal
A Defias Bandit
 
Neal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 300
Uploads: 15
Originally posted by Ammo
Your code looks alright, but does the texture show up when you do:

dbh:SetVertexColor(1, 0, 0, 1) instead of dbh:SetVertexColor(0,0,0,0)

That should always give a red texture on your frame, if that doesn't work then it will never show up through oUF_DebuffHighlight either

-Ammo
Yes i get a red texture
Neal is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 06:55 AM  
Neal
A Defias Bandit
 
Neal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 300
Uploads: 15
And only

self.DebuffHighlightBackdrop = true

does not work too I use the german client.
Neal is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 06:48 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 26
Re: Re: Re: Re: Re: Hi

Originally posted by nodq
Thanks, i will try it out later.

One Question, where do i get good Textures for Debuff highlighting ?
I wouldn't know, I myself use the background highlighting in oUF_Ammo

you could use any of the highlighting textures used in wow or get someone to make one for you.

-Ammo
Ammo is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 06:45 AM  
nodq
A Kobold Labourer
 
nodq's Avatar

Forum posts: 0
File comments: 106
Uploads: 0
Re: Re: Re: Re: Hi

Originally posted by Ammo
I've fixed it on the wowace svn. If you can't cast helpful spells on the unit it won't highlight.

-Ammo

Thanks, i will try it out later.

One Question, where do i get good Textures for Debuff highlighting ?
nodq is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 06:32 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 26
Originally posted by Neal
It doesn't work ...im to stupid^^

local dbh = hp:CreateTexture(nil, "OVERLAY")
dbh:SetAllPoints(hp)
dbh:SetTexture("Interface\\AddOns\\oUF_Neal\\textures\\Debuff.tga")
dbh:SetBlendMode("ADD")
dbh:SetVertexColor(0, 0, 0, 0)
self.DebuffHighlightAlpha = 1
self.DebuffHighlightFilter = true
self.DebuffHighlight = dbh

Why it doesn't work? I will use a debuffborer like Pitbull.

Ps.: Sry for my very bad english^^
Your code looks alright, but does the texture show up when you do:

dbh:SetVertexColor(1, 0, 0, 1) instead of dbh:SetVertexColor(0,0,0,0)

That should always give a red texture on your frame, if that doesn't work then it will never show up through oUF_DebuffHighlight either

-Ammo
Ammo is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 06:22 AM  
Neal
A Defias Bandit
 
Neal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 300
Uploads: 15
It doesn't work ...im to stupid^^

local dbh = hp:CreateTexture(nil, "OVERLAY")
dbh:SetAllPoints(hp)
dbh:SetTexture("Interface\\AddOns\\oUF_Neal\\textures\\Debuff.tga")
dbh:SetBlendMode("ADD")
dbh:SetVertexColor(0, 0, 0, 0)
self.DebuffHighlightAlpha = 1
self.DebuffHighlightFilter = true
self.DebuffHighlight = dbh

Why it doesn't work? I will use a debuffborer like Pitbull.

Ps.: Sry for my very bad english^^
Neal is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 05:55 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 26
Originally posted by scotte44
Does this mod allow you to click the frame to decurse like oUF_DispellColor?
No. The problem with oUF_DispelColor is that it breaks the Clickcasting functionality for addons like Clique on the unitframe.

I suggest you download Clique and set it up for decursing. (and clickhealing etc etc)

-Ammo
Ammo is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 05:41 AM  
scotte44
A Kobold Labourer

Forum posts: 1
File comments: 33
Uploads: 0
Does this mod allow you to click the frame to decurse like oUF_DispellColor?
scotte44 is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 05:32 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 26
Re: Re: Re: Hi

Originally posted by nodq
Hm, in BattleGrounds i like to work like this, target friendly units, an watch on target frame, dispell coloring is very nice then, but it annoys to have debuff coloring on target frame always, even if its a hostile target.

but okay, your addon, your rules.
I've fixed it on the wowace svn. If you can't cast helpful spells on the unit it won't highlight.

-Ammo
Ammo is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 05:27 AM  
nodq
A Kobold Labourer
 
nodq's Avatar

Forum posts: 0
File comments: 106
Uploads: 0
Re: Re: Hi

Originally posted by Ammo
You're not supposed to enable it on your target frame

-Ammo
Hm, in BattleGrounds i like to work like this, target friendly units, an watch on target frame, dispell coloring is very nice then, but it annoys to have debuff coloring on target frame always, even if its a hostile target.

but okay, your addon, your rules.
nodq is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 05:17 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 26
Re: Hi

Originally posted by nodq
It works, but it shows the debuff coloring also for Hostile Targets when i DoT them, in theory i can dispell these debuffs, but not on a Hostile Target

The version of Coldfury does Filter that afaik.
You're not supposed to enable it on your target frame

That being said, it's easy to fix. And will be in the next release.

-Ammo
Last edited by Ammo : 04-29-08 at 05:26 AM.
Ammo is offline Report comment to moderator  
Reply With Quote
Old 04-29-08, 04:49 AM  
nodq
A Kobold Labourer
 
nodq's Avatar

Forum posts: 0
File comments: 106
Uploads: 0
Hi

It works, but it shows the debuff coloring also for Hostile Targets when i DoT them, in theory i can dispell these debuffs, but not on a Hostile Target

The version of Coldfury does Filter that afaik.
nodq is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: