Get an Epic Experience with Premium


Unit Frames Login to Add Favorites
  • Project Manager: Ammo
  • World of Warcraft
  • 56 Monthly Downloads
  • Supports: 4.0.1
  • 22,423 Total Downloads
  • Updated 10/18/2010
  • Created 07/28/2008
  • 17 Favorites
  • Project Site
  • Comments
  • Release Type: Inactive
  • License: All Rights Reserved
  • Newest File: r50-release

About oUF_DebuffHighlight

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:

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.

local dbh = self:CreateTexture(nil, "OVERLAY")
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:

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:

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:

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):

local dbh = hp:CreateTexture(nil, "OVERLAY")
dbh:SetPoint("CENTER", self, "CENTER")
self.DebuffHighlight = dbh

And set:

self.DebuffHighlightUseTexture = true



r50 | ammo | 2010-10-18 18:58:58 +0000 (Mon, 18 Oct 2010) | 1 line
Changed paths:
   A /tags/r50-release (from /trunk:49)

Tagging as r50-release
r49 | ammo | 2010-10-18 18:27:13 +0000 (Mon, 18 Oct 2010) | 1 line
Changed paths:
   M /trunk/oUF_DebuffHighlight.lua

fix up changes to classes for 4.0 thanks elv22
r47 | ammo | 2010-10-16 14:04:23 +0000 (Sat, 16 Oct 2010) | 1 line
Changed paths:
   M /trunk/oUF_DebuffHighlight.toc

toc to the hand
r46 | ammo | 2009-11-19 20:37:40 +0000 (Thu, 19 Nov 2009) | 1 line
Changed paths:
   M /trunk/oUF_DebuffHighlight.lua
   M /trunk/oUF_DebuffHighlight.toc
   M /trunk/readme.txt

add option to only color backdropborder or backdrop or backdrop&border


Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Leaguepedia PAX Skin Giveaway