Quantcast
WoWInterface - View Single Post - Kgpanels : keeping a panel gradient & classcolored
View Single Post
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