Thread Tools Display Modes
12-20-10, 04:57 AM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
oUF_DebuffHighlight and !Beautycase..

Hello, i want to attach my beautycase borders to debuffhight backdrop so the borders turn blue when magic, or orange when its a diesase, but it doesnt seem to work.. how to add this function? i've tryed alot too do this, now not so succesful, i've tryet to attach to everything, doesnt seem to work :/

full layout: http://pastebin.com/auFr0KPG


should look like this..

Last edited by Aftermathhqt : 12-20-10 at 05:02 AM.
  Reply With Quote
12-21-10, 12:40 AM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Just use PostCreateIcon:
Code:
function Debuffs.PostCreateIcon(button)
   button.overlay:SetTexture([[Path\To\The\Texture]])
end
__________________
「貴方は1人じゃないよ」
  Reply With Quote
12-21-10, 04:30 AM   #3
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
ill try it if it works thanks

got this error

Code:
Message: Interface\AddOns\oUF_Aftermathh\oUF_Aftermathh.lua:156: attempt to index local 'Debuffs' (a boolean value)
Time: 12/21/10 11:36:11
Count: 1
Stack: Interface\AddOns\oUF_Aftermathh\oUF_Aftermathh.lua:156: in main chunk

Locals: _ = "Priest"
class = "PRIEST"
playerColor = <table> {
 b = 1
 g = 0.843
 r = 0.659
}
texture = "Interface\AddOns\oUF_Aftermathh\media\texture.tga"
border = "Interface\AddOns\oUF_Aftermathh\media\border.tga"
font = "Interface\AddOns\oUF_Aftermathh\media\font.ttf"
borderbg = "Interface\AddOns\oUF_Aftermathh\media\borderBackground.tga"
Debuffs = true
Buffs = true
DebuffType = true
PvPIcon = true
Portraits = true
BossFrame = true
CastBars = true
Safezone = true
Latency = true
ClassColor = false
FocusShowInterruptHighlight = true
TargetShowInterruptHighlight = true
FocusCastBarIcon = true
RaidClassColor = false
RaidNoneClassColor = true
backdrop = <table> {
 insets = <table> {
 }
 bgFile = "Interface\ChatFrame\ChatFrameBackground"
}
UpdateChannelStart = <function> defined @Interface\AddOns\oUF_Aftermathh\oUF_Aftermathh.lua:33
UpdateCastStart = <function> defined @Interface\AddOns\oUF_Aftermathh\oUF_Aftermathh.lua:49
menu = <function> defined @Interface\AddOns\oUF_Aftermathh\oUF_Aftermathh.lua:65
updateRIcon = <function> defined @Interface\AddOns\oUF_Aftermathh\oUF_Aftermathh.lua:76
ShortenValue = <function> defined @Interface\AddOns\oUF_Aftermathh\oUF_Aftermathh.lua:85
auraIcon = <function> defined @Interface\AddOns\oUF_Aftermathh\oUF_Aftermathh.lua:123
(*temporary) = <function> defined @Interface\AddOns\oUF_Aftermathh\oUF_Aftermathh.lua:156
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'Debuffs' (a boolean value)"

Last edited by Aftermathhqt : 12-21-10 at 04:36 AM.
  Reply With Quote
12-21-10, 05:26 AM   #4
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Apparently too tired this morning. I thought you meant the highlight on debuffs within the default aura element, and not some external plug-in.

My code was merely an example of how to change the default debuff highlight. It wasn't tailored to be directly working with your layout as well, because I'd rather reply than postpone replying until I have time to check the semi-related pastey as well.

Anyway, look at the plug-ins code, you might find an answer there.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
12-21-10, 03:03 PM   #5
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
I through so.. it looked abit funnie.. i was like.. hmm i already have that stuff in my code..

there is nothing on Debuffhighlight side, i can do somthing, ( i guess)
  Reply With Quote
01-08-11, 06:33 PM   #6
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
I think Roth used too have similar texture's too what you use and he used debuffhighlight plugin. check any of his older layouts for the code he used for hints.

-_-v
  Reply With Quote
01-11-11, 12:31 PM   #7
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Hmm, chould not find it..

tryed this today.. no resaults.... sigh

Code:
    local dbhbg = dbh:CreateFrame('Frame', self)
    self.DebuffHighlightBackdrop = dbhbg
    self.DebuffHighlightBackdrop = true
	
    local dbh = CreateFrame("Frame", self)
    self.DebuffHighlight = dbh
    self.DebuffHighlightFrame = true
	
    ColorBorder(self, R, G, B)
	
    ColorBorder(dbh, R, G, B)
	
    ColorBorder(dbhbg, R, G, B)
  Reply With Quote
01-12-11, 03:23 AM   #8
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
Code:
  local d = self:CreateTexture(nil,"BACKGROUND",nil,-7)
    d:SetTexture("Interface\\AddOns\\rTextures\\raid_debuffglow")
    d:SetAllPoints(self)
    d:SetBlendMode("BLEND")
    d:SetVertexColor(0, 1, 0, 0) -- set alpha to 0 to hide the texture
    self.DebuffHighlight = d
    self.DebuffHighlightAlpha = 1
    self.DebuffHighlightFilter = true
is his current code for debuffhighlight..

Im not sure how your full code looks. but you're creating a frame instead of a texture in your code...try using one of the many examples on the ouf_debuffhighlight page and see if u can get it too work with a texture instead of beautycase.
  Reply With Quote
01-13-11, 12:42 AM   #9
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Lua Code:
  1. self.DebuffHighlightBackdrop = true
  2. self.SetBackdropColor = self.SetBackdropBorderColor

Or if that didnt work

Lua Code:
  1. self.DebuffHighlightBackdrop = true
  2. self.SetBackdropColor = function(frame, ...)
  3.     self:SetBackdropBorderColor(...)
  4. end
  Reply With Quote
01-13-11, 02:15 AM   #10
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Thanks both, going to try it tonight
  Reply With Quote
01-13-11, 10:58 AM   #11
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Doesnt seem to work.. or i'm just doing wrong :<
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF_DebuffHighlight and !Beautycase..

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off