So i'm trying to create a glow function, for oUF, that it glows around my borders on my unitframes should look like this:
but instead of purple it should glow in the debuffs types color.
Code:
self.DebuffHighlightBackdrop = self.debuffhighlightglow
self.DebuffHighlightFilter = false
self.DebuffHighlight = self.debuffhighlightglow
self.debuffhighlightglow = {}
if AftermathhUI.config.debuffhiglightglow == true then
for i = 1, 8 do
self.debuffhighlightglow[i] = self:CreateTexture(nil, 'BACKGROUND')
self.debuffhighlightglow[i]:SetParent(self)
self.debuffhighlightglow[i]:SetTexture(borderbg)
self.debuffhighlightglow[i]:SetWidth(20)
self.debuffhighlightglow[i]:SetHeight(20)
self.debuffhighlightglow[i]:SetVertexColor(1, 0, 1)
end
self.debuffhighlightglow[1]:SetTexCoord(0, 1/3, 0, 1/3)
self.debuffhighlightglow[1]:SetPoint('TOPLEFT', self, -10, 10)
self.debuffhighlightglow[2]:SetTexCoord(2/3, 1, 0, 1/3)
self.debuffhighlightglow[2]:SetPoint('TOPRIGHT', self, 10, 10)
self.debuffhighlightglow[3]:SetTexCoord(0, 1/3, 2/3, 1)
self.debuffhighlightglow[3]:SetPoint('BOTTOMLEFT', self, -10, -10)
self.debuffhighlightglow[4]:SetTexCoord(2/3, 1, 2/3, 1)
self.debuffhighlightglow[4]:SetPoint('BOTTOMRIGHT', self, 10, -10)
self.debuffhighlightglow[5]:SetTexCoord(1/3, 2/3, 0, 1/3)
self.debuffhighlightglow[5]:SetPoint('TOPLEFT', self.debuffhighlightglow[1], 'TOPRIGHT')
self.debuffhighlightglow[5]:SetPoint('TOPRIGHT', self.debuffhighlightglow[2], 'TOPLEFT')
self.debuffhighlightglow[6]:SetTexCoord(1/3, 2/3, 2/3, 1)
self.debuffhighlightglow[6]:SetPoint('BOTTOMLEFT', self.debuffhighlightglow[3], 'BOTTOMRIGHT')
self.debuffhighlightglow[6]:SetPoint('BOTTOMRIGHT', self.debuffhighlightglow[4], 'BOTTOMLEFT')
self.debuffhighlightglow[7]:SetTexCoord(0, 1/3, 1/3, 2/3)
self.debuffhighlightglow[7]:SetPoint('TOPLEFT', self.debuffhighlightglow[1], 'BOTTOMLEFT')
self.debuffhighlightglow[7]:SetPoint('BOTTOMLEFT', self.debuffhighlightglow[3], 'TOPLEFT')
self.debuffhighlightglow[8]:SetTexCoord(2/3, 1, 1/3, 2/3)
self.debuffhighlightglow[8]:SetPoint('TOPRIGHT', self.debuffhighlightglow[2], 'BOTTOMRIGHT')
self.debuffhighlightglow[8]:SetPoint('BOTTOMRIGHT', self.debuffhighlightglow[4], 'TOPRIGHT')
end