Since It may help, I'll post Holy Power as well.
lua Code:
local _, class = UnitClass('player')
if class == 'PALADIN' then
local holypower = CreateFrame('Frame', nil, self)
holypower:SetPoint('TOPLEFT', oUF_SveltePlayer, 'BOTTOMLEFT', -2, -4)
holypower:SetSize(227, 2)
for i = 1, MAX_HOLY_POWER do
local holyRune = holypower:CreateTexture(nil, 'OVERLAY')
holyRune:SetSize((227 / MAX_HOLY_POWER) - 1, 4)
holyRune:SetTexture(bartex)
holyRune:SetVertexColor(1,.95,.33)
if i > 1 then
holyRune:SetPoint('LEFT', holypower[i - 1], 'RIGHT', 1, 0)
else
holyRune:SetPoint('BOTTOMLEFT', holypower, 'BOTTOMLEFT', 1, 0)
end
holypower[i] = holyRune
end
self.HolyPower = holypower
end