Using an icon (and oUF_Banzai, oUF_CombatFeedback)
oUF Debuff Highlight
Rate:
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):
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
Optional Files - oUF Debuff Highlight
Sorry, there are currently no optional files available.
Will it possible to use there a own Border? Blizzlike buffborder sucks
With some tricksyness yes
You could make self.DebuffHighlight not a real frame but a dummy table with a SetTexture function that handles setting the correct texture on the real debuff frame and showing the border. Hide everythign again when nil gets passed to your SetTexture function.
Originally posted by Ammo I added support for using the actual debuff icon texture instead of coloring a texture as well. I will update on wowinterface later today.
-Ammo
Like Grid? Yeah!^^
Will it possible to use there a own Border? Blizzlike buffborder sucks