Download
(4Kb)
Download
Updated: 10-18-10 01:00 PM
Addon for:
oUF.
Pictures
File Info
Updated:10-18-10 01:00 PM
Created:unknown
Downloads:29,867
Favorites:157
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
Post A Reply Comment Options
Unread 10-02-08, 05:56 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
I found the bug that hinders the mod from show stuff when debuffs have no debufftype.

The bug is caused by this condition:
Code:
    if debufftype and not filter or (filter and dispellist[debufftype]) then
      return debufftype, texture
    end
The problem is that if you have no debuff filter on you want textures that are NOT part of a debufftype too.

It should be
Code:
    if texture and not filter or (filter and dispellist[debufftype]) then
      return debufftype, texture
    end
Last change must be done in PostUpdateAura.

Instead of
Code:
  if debuffType then
    local color = DebuffTypeColor[debuffType]
It should be:
Code:
  if texture then
    local color
    if debuffType then
      color = DebuffTypeColor[debuffType]
    else
      color = { r = 1, g = 0, b = 0, a = 1 }
    end
This will allow a red border for debuffs of no special type.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-02-08 at 06:42 PM.
Report comment to moderator  
Reply With Quote
Unread 10-27-08, 09:00 AM  
Balkeep
A Cyclonian
 
Balkeep's Avatar
AddOn Author - Click to view AddOns

Forum posts: 43
File comments: 58
Uploads: 2
Just finished writing things to show debuff Grid-alike (small green(or w/e color debuff is) square at bottom felt of UF) and i totaly like it hehe.

But what i find out is in ur main code cleansing list looks like this:
Code:
	SHAMAN = { Poison = true, Disease = true, },
and its not completely true cuz since 3.0 shamans can decurse aswel. Now i will fix it myself but can u please fix this in ur addon too? Thx!
Report comment to moderator  
Reply With Quote
Unread 10-27-08, 10:37 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 22
Originally posted by Balkeep
Just finished writing things to show debuff Grid-alike (small green(or w/e color debuff is) square at bottom felt of UF) and i totaly like it hehe.

But what i find out is in ur main code cleansing list looks like this:
Code:
	SHAMAN = { Poison = true, Disease = true, },
and its not completely true cuz since 3.0 shamans can decurse aswel. Now i will fix it myself but can u please fix this in ur addon too? Thx!
I have not updated this for 3.0, I will do so shortly.

I had a PC meltdown, the magic smoke was released, and am awaiting a new wow capable machine

-Ammo
Report comment to moderator  
Reply With Quote
Unread 12-25-08, 03:22 PM  
Balkeep
A Cyclonian
 
Balkeep's Avatar
AddOn Author - Click to view AddOns

Forum posts: 43
File comments: 58
Uploads: 2
Thx for update! =P havent checked it yet, but will do so shortly
Report comment to moderator  
Reply With Quote
Unread 12-26-08, 10:06 PM  
PProvost
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 126
Uploads: 23
Hmmm... getting a strange error when oUF_DebuffHighlight is enabled:

Code:
oUF-1.3.1\\ouf.lua:94: attempt to call field '?' (a nil value)
But only when oUF_DebuffHighlight is enabled.
Report comment to moderator  
Reply With Quote
Unread 12-30-08, 04:14 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 22
Originally posted by PProvost
Hmmm... getting a strange error when oUF_DebuffHighlight is enabled:

Code:
oUF-1.3.1\\ouf.lua:94: attempt to call field '?' (a nil value)
But only when oUF_DebuffHighlight is enabled.
I have a fix ready, will release shortly.

-Ammo
Report comment to moderator  
Reply With Quote
Unread 03-16-09, 11:03 PM  
PProvost
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 126
Uploads: 23
Ammo... any thought about Resto shaman and curses? I know I can add Curse = true to the CanDispel table, but was thinking it would be REALLY cool if it checked the talent tree.
Report comment to moderator  
Reply With Quote
Unread 03-25-09, 06:18 AM  
Dessembrae
A Fallenroot Satyr
 
Dessembrae's Avatar
AddOn Author - Click to view AddOns

Forum posts: 29
File comments: 75
Uploads: 5
Got an error in oUF_DebuffHighlight.lua line 89

Since about a week or so the following error appears:

Code:
Date: 2009-03-25 13:15:12
ID: 1
Error occured in: Global
Count: 1
Message: ...e\AddOns\oUF_DebuffHighlight\oUF_DebuffHighlight.lua line 89:
   attempt to call method 'AddElement' (a nil value)
Debug:
   [C]: AddElement()
   ...e\AddOns\oUF_DebuffHighlight\oUF_DebuffHighlight.lua:89: in main chunk
AddOns:
  BaudErrorFrame, v1.213
  Swatter, v5.3.4105 (DingoIII)
  WowheadLooter, v30018
  acbCastBar, v09.03.22
  acbMirror, v09.03.22
  Ace3, v
  AckisRecipeList, v1.0 RC4 1563
  ActionBarSaver, v$Revision$
  Ampere, v3.0.3.14
  AtlasLoot, vv5.03.03
  AucAdvanced, v5.3.4105 (DingoIII)
  AucFilterBasic, v5.3.4105 (DingoIII)
  AucFilterOutlier, v5.3.4105.2531
  AucMatchUndercut, v5.3.4105.2531
  AucStatClassic, v5.3.4105 (DingoIII)
  AucStatHistogram, v5.3.4105 (DingoIII)
  AucStatiLevel, v5.3.4105 (DingoIII)
  AucStatPurchased, v5.3.4105 (DingoIII)
  AucStatSales, v5.3.4105.2842
  AucStatSimple, v5.3.4105 (DingoIII)
  AucStatStdDev, v5.3.4105 (DingoIII)
  AucStatWOWEcon, v5.3.4105.2530
  AucUtilAHWindowControl, v5.3.4105.3311
  AucUtilAppraiser, v5.3.4105.2530
  AucUtilAskPrice, v5.3.4105.3175
  AucUtilAutoMagic, v5.3.4105.3142
  AucUtilCompactUI, v5.3.4105.2530
  AucUtilEasyBuyout, v5.3.4105.3583
  AucUtilItemSuggest, v5.3.4105.3108
  AucUtilPriceLevel, v5.3.4105.2545
  AucUtilScanButton, v5.3.4105.2530
  AucUtilScanFinish, v5.3.4105.2530
  AucUtilScanProgress, v5.3.4105.2530
  AucUtilSearchUI, v5.3.4105.3655
  AucUtilSimpleAuction, v5.3.4105.0
  AucUtilVendMarkup, v5.3.4105.2530
  AzCastBar, v09.03.22
  Babylonian, v5.1.DEV.130
  Bagnon, v1.6.10
  BagnonForever, v1.1.1
  BagnonTooltips, v
  BeanCounter, v5.3.4105 (DingoIII)
  BetterBlizzOptions, v
  BetterInbox, v
  Bidder, v3.1.1
  BidderEPGP, v3.0.0
  BigWigs, v2.0
  BigWigsPizzaBar, v1.1
  Blipstick, v3.0.3.8
  ButtonBin, v1.0.60
  ButtonFacade, v3.0.222
  ButtonFacadeCaith, v3.0.44
  ChatBar, v2.4
  ChatCopy, v
  ChatIcons, v1.0.3
  ClearFont2, v2.6
  ClearFont2FontTenUI, v
  Clique, v113
  Configator, v5.1.DEV.130
  ControlFreak, v3.0.3.15
  DebugLib, v5.1.DEV.130
  Decursive, v2.4_beta_3_STABLE
  Demon, v1.1
  Dominos, v1.8.3
  DominosBuff, v
  DominosCast, v
  DominosRoll, v
  DominosXP, v
  DoubleWide, v
  Enchantrix, v5.3.4105 (DingoIII)
  EnchantrixBarker, v5.3.4105 (DingoIII)
  EnhancedColourPicker, vb1.9056.1
  EnhTooltip, v5.1.3715 (SnaggleTooth)
  ErrorMonster, v3
  FluidFrames, v2.2
  ForteCasting, v
  ForteCooldown, v
  ForteCore, vv1.03
  ForteDeathKnight, v
  ForteDruid, v
  ForteHealthstone, v
  ForteHunter, v
  ForteMage, v
  FortePriest, v
  ForteShaman, v
  ForteShard, v
  ForteSoulstone, v
  ForteSummon, v
  ForteTalent, v
  ForteTimer, v
  ForteVehicle, v
  ForteWarlock, v
  ForteWarrior, v
  FuBar2Broker, v1.0.3
  GatherMate, vv1.16
  GatherMateSharing, v1.1
  Grid, v1.30000.2009021101
  GridStatusKalecgos, v0.1
  GroupCalendar, v4.4.1
  GuildLaunchCTRaidTracker, vv1.7.5
  GuildLaunchProfiler, v00.09.12 BETA
  HatTrick, v
  IHML, v2.3
  kgPanels, vv1.26
  LittleWigs, v3.0.0
  LittleWigsTBC, v
  MagicMarker, v1.0.146
  Mapster, v1.1.3
  MikScrollingBattleText, v5.3.36
  MSBTSharedMedia, v1.35
  mumble, v1.2
  MyMedia, v1.0
  oCD, v
  Omen, v3.0.6
  OmniCC, v2.3.1
  oRA2, v2.0.$Revision: 628 $
  oTweaks, v1.0.0
  oUF, v1.2.1
  oUFCombatFeedback, v1.0
  oUFDebuffHighlight, v1.0
  Portfolio, v1.2
  Skinner, vb1.9551.3 
  SlideBar, v5.1.DEV.136
  Stubby, v5.3.4105 (DingoIII)
Report comment to moderator  
Reply With Quote
Unread 03-26-09, 12:44 PM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 22
Re: Got an error in oUF_DebuffHighlight.lua line 89

Is your oUF up to date?

-Ammo

Originally posted by Dessembrae
Since about a week or so the following error appears:

Code:
Date: 2009-03-25 13:15:12
ID: 1
Error occured in: Global
Count: 1
Message: ...e\AddOns\oUF_DebuffHighlight\oUF_DebuffHighlight.lua line 89:
   attempt to call method 'AddElement' (a nil value)
Debug:
   [C]: AddElement()
   ...e\AddOns\oUF_DebuffHighlight\oUF_DebuffHighlight.lua:89: in main chunk
AddOns:
  BaudErrorFrame, v1.213
  Swatter, v5.3.4105 (DingoIII)
  WowheadLooter, v30018
  acbCastBar, v09.03.22
  acbMirror, v09.03.22
  Ace3, v
  AckisRecipeList, v1.0 RC4 1563
  ActionBarSaver, v$Revision$
  Ampere, v3.0.3.14
  AtlasLoot, vv5.03.03
  AucAdvanced, v5.3.4105 (DingoIII)
  AucFilterBasic, v5.3.4105 (DingoIII)
  AucFilterOutlier, v5.3.4105.2531
  AucMatchUndercut, v5.3.4105.2531
  AucStatClassic, v5.3.4105 (DingoIII)
  AucStatHistogram, v5.3.4105 (DingoIII)
  AucStatiLevel, v5.3.4105 (DingoIII)
  AucStatPurchased, v5.3.4105 (DingoIII)
  AucStatSales, v5.3.4105.2842
  AucStatSimple, v5.3.4105 (DingoIII)
  AucStatStdDev, v5.3.4105 (DingoIII)
  AucStatWOWEcon, v5.3.4105.2530
  AucUtilAHWindowControl, v5.3.4105.3311
  AucUtilAppraiser, v5.3.4105.2530
  AucUtilAskPrice, v5.3.4105.3175
  AucUtilAutoMagic, v5.3.4105.3142
  AucUtilCompactUI, v5.3.4105.2530
  AucUtilEasyBuyout, v5.3.4105.3583
  AucUtilItemSuggest, v5.3.4105.3108
  AucUtilPriceLevel, v5.3.4105.2545
  AucUtilScanButton, v5.3.4105.2530
  AucUtilScanFinish, v5.3.4105.2530
  AucUtilScanProgress, v5.3.4105.2530
  AucUtilSearchUI, v5.3.4105.3655
  AucUtilSimpleAuction, v5.3.4105.0
  AucUtilVendMarkup, v5.3.4105.2530
  AzCastBar, v09.03.22
  Babylonian, v5.1.DEV.130
  Bagnon, v1.6.10
  BagnonForever, v1.1.1
  BagnonTooltips, v
  BeanCounter, v5.3.4105 (DingoIII)
  BetterBlizzOptions, v
  BetterInbox, v
  Bidder, v3.1.1
  BidderEPGP, v3.0.0
  BigWigs, v2.0
  BigWigsPizzaBar, v1.1
  Blipstick, v3.0.3.8
  ButtonBin, v1.0.60
  ButtonFacade, v3.0.222
  ButtonFacadeCaith, v3.0.44
  ChatBar, v2.4
  ChatCopy, v
  ChatIcons, v1.0.3
  ClearFont2, v2.6
  ClearFont2FontTenUI, v
  Clique, v113
  Configator, v5.1.DEV.130
  ControlFreak, v3.0.3.15
  DebugLib, v5.1.DEV.130
  Decursive, v2.4_beta_3_STABLE
  Demon, v1.1
  Dominos, v1.8.3
  DominosBuff, v
  DominosCast, v
  DominosRoll, v
  DominosXP, v
  DoubleWide, v
  Enchantrix, v5.3.4105 (DingoIII)
  EnchantrixBarker, v5.3.4105 (DingoIII)
  EnhancedColourPicker, vb1.9056.1
  EnhTooltip, v5.1.3715 (SnaggleTooth)
  ErrorMonster, v3
  FluidFrames, v2.2
  ForteCasting, v
  ForteCooldown, v
  ForteCore, vv1.03
  ForteDeathKnight, v
  ForteDruid, v
  ForteHealthstone, v
  ForteHunter, v
  ForteMage, v
  FortePriest, v
  ForteShaman, v
  ForteShard, v
  ForteSoulstone, v
  ForteSummon, v
  ForteTalent, v
  ForteTimer, v
  ForteVehicle, v
  ForteWarlock, v
  ForteWarrior, v
  FuBar2Broker, v1.0.3
  GatherMate, vv1.16
  GatherMateSharing, v1.1
  Grid, v1.30000.2009021101
  GridStatusKalecgos, v0.1
  GroupCalendar, v4.4.1
  GuildLaunchCTRaidTracker, vv1.7.5
  GuildLaunchProfiler, v00.09.12 BETA
  HatTrick, v
  IHML, v2.3
  kgPanels, vv1.26
  LittleWigs, v3.0.0
  LittleWigsTBC, v
  MagicMarker, v1.0.146
  Mapster, v1.1.3
  MikScrollingBattleText, v5.3.36
  MSBTSharedMedia, v1.35
  mumble, v1.2
  MyMedia, v1.0
  oCD, v
  Omen, v3.0.6
  OmniCC, v2.3.1
  oRA2, v2.0.$Revision: 628 $
  oTweaks, v1.0.0
  oUF, v1.2.1
  oUFCombatFeedback, v1.0
  oUFDebuffHighlight, v1.0
  Portfolio, v1.2
  Skinner, vb1.9551.3 
  SlideBar, v5.1.DEV.136
  Stubby, v5.3.4105 (DingoIII)
Report comment to moderator  
Reply With Quote
Unread 05-23-09, 10:02 PM  
Attro
A Murloc Raider

Forum posts: 6
File comments: 25
Uploads: 0
I'm struggling and need some guidance. I am currently using oUF_dLx for my unitframes, but I can's seem to get the debuff highlight to work.

The one thing that comes to mind is that I'm not placing the code in the right place. I'm currently placing it in the oUF_dLx Lua file named: layout.lua The only way for me to place the code in that file, without causing problems is to put it at the end.

I'm under the impression that the oUF_dLx Lua file is the only thing that I modify; then just put the oUF_DebuffHighlight folder into my addons folder.

Below are two example that I have tried:

-- oUF_DebuffHighlignt
local dbh = hp:CreateTexture(nil, "OVERLAY")
dbh:SetAllPoints(hp)
dbh:SetTexture("Interface\\AddOns\\oUF_dLx\\textures\\combatGlow.tga")
dbh:SetBlendMode("BLEND")
dbh:SetVertexColor(.85, 0, 1, 0)
self.DebuffHighlightAlpha = 1
self.DebuffHighlightFilter = false
self.DebuffHighlight = dbh

I've also tried this:

local dbh = hp:CreateTexture(nil, "OVERLAY")
dbh:SetWidth(22)
dbh:SetHeight(22)
dbh:SetPoint("CENTER", self, "CENTER")
dbh:SetBlendMode("BLEND")
self.DebuffHighlightUseTexture = true
self.DebuffHighlightFilter = false
self.DebuffHighlight = dbh

Any guidance would be greatly appreciated.
Report comment to moderator  
Reply With Quote
Unread 05-24-09, 02:49 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 22
There is a pretty good example in my oUF_Ammo layout amongst others.

-Ammo

Originally posted by Attro
I'm struggling and need some guidance. I am currently using oUF_dLx for my unitframes, but I can's seem to get the debuff highlight to work.

The one thing that comes to mind is that I'm not placing the code in the right place. I'm currently placing it in the oUF_dLx Lua file named: layout.lua The only way for me to place the code in that file, without causing problems is to put it at the end.

I'm under the impression that the oUF_dLx Lua file is the only thing that I modify; then just put the oUF_DebuffHighlight folder into my addons folder.

Below are two example that I have tried:

-- oUF_DebuffHighlignt
local dbh = hp:CreateTexture(nil, "OVERLAY")
dbh:SetAllPoints(hp)
dbh:SetTexture("Interface\\AddOns\\oUF_dLx\\textures\\combatGlow.tga")
dbh:SetBlendMode("BLEND")
dbh:SetVertexColor(.85, 0, 1, 0)
self.DebuffHighlightAlpha = 1
self.DebuffHighlightFilter = false
self.DebuffHighlight = dbh

I've also tried this:

local dbh = hp:CreateTexture(nil, "OVERLAY")
dbh:SetWidth(22)
dbh:SetHeight(22)
dbh:SetPoint("CENTER", self, "CENTER")
dbh:SetBlendMode("BLEND")
self.DebuffHighlightUseTexture = true
self.DebuffHighlightFilter = false
self.DebuffHighlight = dbh

Any guidance would be greatly appreciated.
Report comment to moderator  
Reply With Quote
Unread 06-21-09, 03:53 AM  
Elariah
Premium Member
 
Elariah's Avatar
Premium Member

Forum posts: 18
File comments: 67
Uploads: 0
Edit: Nvm I was being stupid, mod wasn't turned on. I disabled it when I used RothUI and forgot to re-enable it when I re-installed this mod.
Last edited by Elariah : 06-21-09 at 04:43 AM.
Report comment to moderator  
Reply With Quote
Unread 06-23-09, 01:09 PM  
Elariah
Premium Member
 
Elariah's Avatar
Premium Member

Forum posts: 18
File comments: 67
Uploads: 0
Is it possible to have another version for tracking when a unit has a Heal over Time on them?
Report comment to moderator  
Reply With Quote
Unread 06-24-09, 07:31 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 22
Originally posted by NarusegawaNaru
Is it possible to have another version for tracking when a unit has a Heal over Time on them?
You'd need a specific written addon for that, this module reuses the blizzard combat feedback information, which does not provide that information.
Try oUF_Indicators or something.
Report comment to moderator  
Reply With Quote
Unread 06-25-09, 05:44 AM  
Elariah
Premium Member
 
Elariah's Avatar
Premium Member

Forum posts: 18
File comments: 67
Uploads: 0
Hi, thanks anyway. I duplicated the addon, did a search replace on "DebuffHighlight" for "HOTHightlight" and then just changed your UnitAura's checking to only check for specific spells, and force a single color.

I then just added it to my layout, so I use 1 overlay texture for debuffs, and a second one (that doesn't overlap with the debuff one) for the HOT one. :-)

Thanks for this addon though. ^_^
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: