Thanks for the help guys. The below code isn't doing anything, not getting any error, but it simply doesn't change color. Not even if I get 1 2 3 4 combo points. I've set the text to green to test it, nada.
I have this outside the layout function:
Code:
local function UpdateComboPointsFormat(self, event, unit)
if unit=="target" then
if(playerClass=="ROGUE" or playerClass=="DRUID") then
local ccp = GetComboPoints(unit)
if ccp == 5 then
self.CPoints:SetTextColor(1, 0, 0)
else
self.CPoints:SetTextColor(0, 0, 1)
end
end
end
end
And this in the layout function:
Code:
if unit=="target" then
if(playerClass=="ROGUE" or playerClass=="DRUID") then
self.CPoints = self:CreateFontString(nil, 'OVERLAY')
self.CPoints:SetFont(font, fontsize*3, "OUTLINE")
self.CPoints:SetPoint('CENTER', self, 'LEFT', -110, 0)
self.CPoints:SetShadowOffset(1, -1)
self.CPoints:SetJustifyH('CENTER')
--self.CPoints:SetTextColor(0.90, 1, 1)
end
end
self:RegisterEvent("UNIT_COMBO_POINTS", UpdateComboPointsFormat)
Note the commented, that is what it USED to do, now I want the text to be red when I have 5 combo points.
It Bugs me not to be able to use a debugger (no pun intended
). Kinda blind to "program" this way.