Hey, i have a issue where i can't color the power bar for some reason
Lua Code:
local APower = CreateFrame("StatusBar", nil, self)
APower:SetHeight(22)
if unit == "targettarget"then
APower:SetHeight(13)
end
APower:SetStatusBarTexture(AftermathhUI.media.texture)
APower:SetPoint("TOP", AHealth, "BOTTOM", 0, 0)
APower:SetPoint("LEFT")
APower:SetPoint("RIGHT")
if AftermathhUI.ouf.custompowercolor == true then
APower:SetStatusBarColor(0.81, 0.75, 1.00)
APower.colorClass = false
APower.colorReaction = false
else
APower.colorClass = true
APower.colorReaction = true
end
APower.Smooth = true
APower.frequentUpdates = true
self.Power = APower