Quantcast
WoWInterface - View Single Post - Classicon help
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
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote