Go to Page... |
Updated: | 10-18-10 01:00 PM |
Created: | unknown |
Downloads: | 29,927 |
Favorites: | 157 |
MD5: |
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
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
local dbh = hp:CreateTexture(nil, "OVERLAY")
self.DebuffHighlightAlpha = .5
self.DebuffHighlightFilter = true
local dbh = hp:CreateTexture(nil, "OVERLAY") dbh:SetWidth(32) dbh:SetHeight(32) dbh:SetPoint("CENTER", self, "CENTER") self.DebuffHighlight = dbh
self.DebuffHighlightUseTexture = true
Comment Options |
Elariah |
View Public Profile |
Send a private message to Elariah |
Find More Posts by Elariah |
Add Elariah to Your Buddy List |
Ammo |
View Public Profile |
Send a private message to Ammo |
Find More Posts by Ammo |
Add Ammo to Your Buddy List |
05-23-09, 10:02 PM | |
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. |
|
Attro |
View Public Profile |
Send a private message to Attro |
Find More Posts by Attro |
Add Attro to Your Buddy List |
03-26-09, 12:44 PM | ||
|
Re: Got an error in oUF_DebuffHighlight.lua line 89
Is your oUF up to date?
-Ammo
|
|
|
Ammo |
View Public Profile |
Send a private message to Ammo |
Find More Posts by Ammo |
Add Ammo to Your Buddy List |
03-25-09, 06:18 AM | |
|
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 |
View Public Profile |
Send a private message to Dessembrae |
Visit Dessembrae's homepage! |
Find More Posts by Dessembrae |
Add Dessembrae to Your Buddy List |
03-16-09, 11:03 PM | |
|
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 |
View Public Profile |
Send a private message to PProvost |
Visit PProvost's homepage! |
Find More Posts by PProvost |
Add PProvost to Your Buddy List |
12-30-08, 04:14 AM | ||
|
-Ammo |
|
|
Ammo |
View Public Profile |
Send a private message to Ammo |
Visit Ammo's homepage! |
Find More Posts by Ammo |
Add Ammo to Your Buddy List |
12-26-08, 10:06 PM | |
|
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) |
|
PProvost |
View Public Profile |
Send a private message to PProvost |
Visit PProvost's homepage! |
Find More Posts by PProvost |
Add PProvost to Your Buddy List |
12-25-08, 03:22 PM | |
|
Thx for update! =P havent checked it yet, but will do so shortly
|
|
Balkeep |
View Public Profile |
Send a private message to Balkeep |
Visit Balkeep's homepage! |
Find More Posts by Balkeep |
Add Balkeep to Your Buddy List |
10-27-08, 10:37 AM | ||
|
I had a PC meltdown, the magic smoke was released, and am awaiting a new wow capable machine -Ammo |
|
|
Ammo |
View Public Profile |
Send a private message to Ammo |
Visit Ammo's homepage! |
Find More Posts by Ammo |
Add Ammo to Your Buddy List |
10-27-08, 09:00 AM | |
|
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, }, |
|
Balkeep |
View Public Profile |
Send a private message to Balkeep |
Visit Balkeep's homepage! |
Find More Posts by Balkeep |
Add Balkeep to Your Buddy List |
10-02-08, 05:56 PM | ||
|
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 It should be Code:
if texture and not filter or (filter and dispellist[debufftype]) then return debufftype, texture end Instead of Code:
if debuffType then local color = DebuffTypeColor[debuffType] Code:
if texture then local color if debuffType then color = DebuffTypeColor[debuffType] else color = { r = 1, g = 0, b = 0, a = 1 } end
__________________
| Simple is beautiful. | WoWI AddOns | GitHub | Zork (WoW)
Last edited by zork : 10-02-08 at 06:42 PM.
|
|
|
zork |
View Public Profile |
Send a private message to zork |
Visit zork's homepage! |
Find More Posts by zork |
Add zork to Your Buddy List |
09-26-08, 08:08 PM | ||
|
Code:
local function PostUpdateAura(object, event, unit) local debuffType, texture = GetDebuffType(unit, object.DebuffHighlightFilter) if debuffType then local color = DebuffTypeColor[debuffType] if object.DebuffHighlightBackdrop then object:SetBackdropColor(color.r, color.g, color.b, object.DebuffHighlightAlpha or 1) object:SetBackdropBorderColor(color.r, color.g, color.b, object.DebuffHighlightAlpha or 1) elseif object.DebuffHighlightUseTexture then object.DebuffHighlight:SetTexture(texture) else object.DebuffHighlight:SetVertexColor(color.r, color.g, color.b, object.DebuffHighlightAlpha or .5) end else if object.DebuffHighlightBackdrop then local color = origColors[object] object:SetBackdropColor(color.r, color.g, color.b, color.a) color = origBorderColors[object] object:SetBackdropBorderColor(color.r, color.g, color.b, color.a) elseif object.DebuffHighlightUseTexture then object.DebuffHighlight:SetTexture(nil) else local color = origColors[object] object.DebuffHighlight:SetVertexColor(color.r, color.g, color.b, color.a) end end end |
|
|
Atrophia |
View Public Profile |
Send a private message to Atrophia |
Visit Atrophia's homepage! |
Find More Posts by Atrophia |
Add Atrophia to Your Buddy List |
09-13-08, 03:21 AM | |
|
I have only one question (since i'm not very experienced with lua-coding) how to disable highlight for unstable affliction?
|
|
ichik |
View Public Profile |
Send a private message to ichik |
Visit ichik's homepage! |
Find More Posts by ichik |
Add ichik to Your Buddy List |
08-18-08, 02:19 AM | |
|
Could this be an issue with your texture?
The code looks fine, try using a different highlight texture. -Ammo |
|
Ammo |
View Public Profile |
Send a private message to Ammo |
Visit Ammo's homepage! |
Find More Posts by Ammo |
Add Ammo to Your Buddy List |