- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
4,842 Addons
-
Popular Downloads
- Top World of Warcraft Addons
- Top Rift Addons
- Top Skyrim Mods
- Top Minecraft Server Mods
- Top Terraria Maps
- Top Starcraft II Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Forums
oUF_DebuffHighlight
- 0 Likes
- World of Warcraft
- 18,031 Downloads
- Supports: 4.0.1
- 2 Average Daily Downloads
- Comments
- Created 7/28/2008 3:05:22 AM
- Updated 10/18/2010 1:59:00 PM
- 17 Favorites
- Project Site
- License: All Rights Reserved
- Release Type: Release
- 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: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:
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:SetWidth(32) dbh:SetHeight(32) dbh:SetPoint("CENTER", self, "CENTER") self.DebuffHighlight = dbh
And set:
self.DebuffHighlightUseTexture = true
Enjoy
-Ammo
------------------------------------------------------------------------
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
------------------------------------------------------------------------
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| r50-release | Release | 4.0.1 | 9,441 | 10/18/2010 1:59:00 PM |
| r48-release | Release | 4.0.1 | 2,264 | 10/16/2010 9:04:49 AM |
| r44-release | Release | 3.1.0 | 5 | 4/30/2009 6:10:03 AM |
| r41-release | Release | 3.0.3 | - | 1/4/2009 3:22:07 PM |
| r38-release | Release | 3.0.3 | - | 12/31/2008 5:17:04 AM |
| r36-release | Release | 3.0.3 | 1 | 12/23/2008 4:35:04 AM |
| oUF_DebuffHighlight-r79326 | Beta | 2.4.3 | 1 | 7/27/2008 11:39:04 PM |
| oUF_DebuffHighlight-r72358 | Beta | 2.4.3 | 1 | 5/1/2008 1:01:04 PM |
| oUF_DebuffHighlight-r72075 | Beta | 2.4.3 | - | 4/29/2008 5:57:43 AM |
| oUF_DebuffHighlight-r72074 | Beta | 2.4.3 | 3 | 4/29/2008 5:32:00 AM |
| oUF_DebuffHighlight-r72069 | Beta | 2.4.3 | - | 4/29/2008 4:53:05 AM |
| oUF_DebuffHighlight-r72066 | Beta | 2.4.3 | - | 4/29/2008 2:54:09 AM |
| oUF_DebuffHighlight-r72056 | Beta | 2.4.3 | - | 4/28/2008 11:29:58 PM |
| oUF_DebuffHighlight-r71953 | Beta | 2.4.3 | - | 4/28/2008 6:51:05 AM |
| oUF_DebuffHighlight-r71940 | Beta | 2.4.3 | 3 | 4/28/2008 5:13:22 AM |
| oUF_DebuffHighlight-r71938 | Beta | 2.4.3 | 3 | 4/28/2008 4:36:15 AM |
| oUF_DebuffHighlight-r71931 | Beta | 2.4.3 | - | 4/28/2008 3:17:26 AM |
Comments