Quantcast
Kgpanels : keeping a panel gradient & classcolored - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-29-12, 03:19 AM   #1
Léthalvenom
A Wyrmkin Dreamwalker
 
Léthalvenom's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 50
Kgpanels : keeping a panel gradient & classcolored

I was trying to make some panels gradient while being classcolored. But after a /rl they appear solid again.
Using on load

Code:
local _, class = UnitClass("player")
    local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
    self.bg:SetVertexColor(color.r, color.g, color.b, self.bg:GetAlpha())
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Kgpanels : keeping a panel gradient & classcolored

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