Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-04-11, 02:14 PM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
trying to create glow for debuffhighlight.

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

Last edited by Aftermathhqt : 03-04-11 at 02:30 PM.
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » trying to create glow for debuffhighlight.


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