Thread: Classicon help
View Single Post
03-10-15, 01:01 AM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
The other option, if you actually wanted to let oUF control the color, would be to point the SetVertexColor method to something useful:

Code:
local function SetVertexColor(self, r, g, b)
    self:GetNormalTexture():SetVertexColor(r, g, b)
end
for index = 1, numIcons do
    local Icon = CreateFrame("Button", nil, self)
    Icon:SetNormalTexture(cfg.statusbar_texture)
    Icon:GetNormalTexture():SetAllPoints(true)
    Icon.SetVertexColor = SetVertexColor
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote