Category: oUF: Plugins
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Ammo's Portal Bug Reports Feature Requests

This file is a Addon for oUF by haste. You must have that installed before this Addon will work.

Author:
Version:
r44-release
Date:
04-30-2009 07:12 AM
Size:
2.90 Kb
Downloads:
16,929
Favorites:
191
MD5:
Pictures
Cursed! (Purple border)
Using an icon (and oUF_Banzai, oUF_CombatFeedback)
oUF Debuff Highlight   Popular! (More than 5000 hits)
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
  Change Log - oUF Debuff Highlight
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 Versions - oUF Debuff Highlight
File Name
Version
Size
Author
Date
r41-release
4kB
Ammo
01-06-2009 08:00 AM
r36-release
4kB
Ammo
12-23-2008 06:48 AM
  Comments - oUF Debuff Highlight
Post A Reply Comment Options
Old 09-11-2009, 03:07 PM  
Xark
A Murloc Raider

Forum posts: 6
File comments: 52
Uploads: 0
hey

sry, i am a total lua noob.... in which file i have to put "self.DebuffHighlightFilter = true" for filtering the debuffs?

thx xark
Xark is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-24-2009, 04:30 AM  
Subere
A Cyclonian
Interface Author - Click to view interfaces

Forum posts: 41
File comments: 22
Uploads: 1
Has anyone had any issues getting this working lately with the Pitbull-esque glow texture?

I tried messing around for a bit with no success, though verifying the texture was loaded and in the proper place. I also tried installing Ammo's layout just to see if it worked and had no luck.
Subere is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-26-2009, 11:11 AM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
Quote:
Originally posted by NarusegawaNaru
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. ^_^
Ah yeah, woops. I was thinking combatfeedback when I answered, sorry Your solution is the way to go

-Ammo
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-25-2009, 07:44 AM  
Elariah
Premium Member
 
Elariah's Avatar
Premium Member

Forum posts: 18
File comments: 70
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. ^_^
Elariah is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-24-2009, 09:31 AM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
Quote:
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.
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-23-2009, 03:09 PM  
Elariah
Premium Member
 
Elariah's Avatar
Premium Member

Forum posts: 18
File comments: 70
Uploads: 0
Is it possible to have another version for tracking when a unit has a Heal over Time on them?
Elariah is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-21-2009, 05:53 AM  
Elariah
Premium Member
 
Elariah's Avatar
Premium Member

Forum posts: 18
File comments: 70
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-2009 at 06:43 AM.
Elariah is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-24-2009, 04:49 AM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
There is a pretty good example in my oUF_Ammo layout amongst others.

-Ammo

Quote:
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.
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-24-2009, 12:02 AM  
Attro
A Kobold Labourer

Forum posts: 1
File comments: 13
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.
Attro is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-26-2009, 02:44 PM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
Re: Got an error in oUF_DebuffHighlight.lua line 89

Is your oUF up to date?

-Ammo

Quote:
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)
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-25-2009, 08:18 AM  
Dessembrae
A Defias Bandit
 
Dessembrae's Avatar
Interface Author - Click to view interfaces

Forum posts: 2
File comments: 16
Uploads: 4
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)
Dessembrae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-17-2009, 01:03 AM  
PProvost
A Deviate Faerie Dragon
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 100
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.
PProvost is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-30-2008, 05:14 AM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
Quote:
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
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-26-2008, 11:06 PM  
PProvost
A Deviate Faerie Dragon
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 100
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.
PProvost is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-25-2008, 04:22 PM  
Balkeep
A Cyclonian
 
Balkeep's Avatar
Interface Author - Click to view interfaces

Forum posts: 41
File comments: 40
Uploads: 3
Thx for update! =P havent checked it yet, but will do so shortly
Balkeep is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.