WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   oUF_DebuffHighlight and !Beautycase.. (https://www.wowinterface.com/forums/showthread.php?t=37774)

Aftermathhqt 12-20-10 04:57 AM

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..

haste 12-21-10 12:40 AM

Just use PostCreateIcon:
Code:

function Debuffs.PostCreateIcon(button)
  button.overlay:SetTexture([[Path\To\The\Texture]])
end


Aftermathhqt 12-21-10 04:30 AM

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)"


haste 12-21-10 05:26 AM

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.

Aftermathhqt 12-21-10 03:03 PM

I through so.. it looked abit funnie.. :D i was like.. hmm i already have that stuff in my code..;)

there is nothing on Debuffhighlight side, i can do somthing, ( i guess)

nin 01-08-11 06:33 PM

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

Aftermathhqt 01-11-11 12:31 PM

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)


nin 01-12-11 03:23 AM

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.

p3lim 01-13-11 12:42 AM

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

Aftermathhqt 01-13-11 02:15 AM

Thanks both, going to try it tonight :)

Aftermathhqt 01-13-11 10:58 AM

Doesnt seem to work.. or i'm just doing wrong :<


All times are GMT -6. The time now is 07:49 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI