I am trying to add altpowerbar to target frame. So I went ahead and added below codes into target section. But it's not showing up. Any idea?
Code:
local AltPower = CreateFrame('StatusBar', nil, self)
AltPower:SetPoint('BOTTOM', 0, -10)
AltPower:SetSize(230, 6)
AltPower:SetStatusBarTexture(TEXTURE)
AltPower:SetStatusBarColor(0.15, 0.7, 0.1)
AltPower:SetBackdrop(BACKDROP)
AltPower:SetBackdropColor(0, 0, 0)
AltPower:EnableMouse(true)
AltPower.colorTexture = true
self.AltPowerBar = AltPower
local AltPowerBG = AltPower:CreateTexture(nil, 'BORDER')
AltPowerBG:SetAllPoints()
AltPowerBG:SetTexture(1/3, 1/3, 1/3)