I'd be glad to help you out, but do you have a more specific request?
This is my "Generate Holy Power" function. Feel free to use it as reference.
Code:
lib.genHoly = function(self)
if select(2, UnitClass("player")) ~= "PALADIN" then return end
local ClassIcons = CreateFrame("Frame", nil, self)
ClassIcons:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 0, 7)
ClassIcons:SetSize(140, 20) -- 5 icons * 20 width + 4 spaces * 10 width
for i = 1, 5 do
local Icon = CreateFrame("StatusBar", nil, ClassIcons)
Icon:SetSize(20, 20)
Icon:SetStatusBarTexture(config.statusbar_texture)
Icon:GetStatusBarTexture():SetHorizTile(false)
Icon:SetBackdrop(backdrop)
Icon:SetBackdropColor(0,0,0,1)
-- Map the method oUF tries to call to one that actually exists:
Icon.SetVertexColor = noop
if i == 1 then
Icon:SetPoint("LEFT", ClassIcons)
else
Icon:SetPoint("LEFT", ClassIcons[i-1], "RIGHT", 10, 0)
end
ClassIcons[i] = Icon
end
ClassIcons[1]:SetStatusBarColor(230/255, 175/255, 0)
ClassIcons[2]:SetStatusBarColor(230/255, 175/255, 0)
ClassIcons[3]:SetStatusBarColor(230/255, 175/255, 0)
ClassIcons[4]:SetStatusBarColor(230/255, 175/255, 0)
ClassIcons[5]:SetStatusBarColor(230/255, 175/255, 0)
self.ClassIcons = ClassIcons
end
Code:
local noop = function() return end