tried some more layouts and found some code that worked for me after changing it some. Not sure why my original didn't work, but hey.. it works now
Code:
-- Shaman Totem Bar
lib.genTotemBar = function(self)
if IsAddOnLoaded('oUF_TotemBar') and playerClass == 'SHAMAN' then
local totems = CreateFrame('Frame', nil, self)
totems:SetPoint('BOTTOMLEFT', self.Portrait, 'TOPLEFT', 0, 2)
totems:SetHeight(4)
totems:SetWidth(self.Portrait:GetWidth())
local h = CreateFrame("Frame", nil, totems)
h:SetFrameLevel(3)
h:SetPoint("TOPLEFT",-5,5)
h:SetPoint("BOTTOMRIGHT",5,-5)
lib.gen_backdrop(h)
totems.delay = 0.1
totems.Destroy = true
for i = 1, 4 do
local totem = CreateFrame('StatusBar', nil, totems)
totem:SetSize((self.Portrait:GetWidth() / 4) - 2, 4)
totem:SetStatusBarTexture(cfg.statusbar_texture)
totem:SetFrameLevel(4)
totem:SetMinMaxValues(0, 1)
if (i == 1) then
totem:SetPoint('LEFT', totems, 'LEFT', 1, 1)
else
totem:SetPoint('TOPLEFT', totems[i - 1], 'TOPRIGHT', 2, 0)
end
local totemBG = totem:CreateTexture(nil, 'BACKGROUND')
totemBG:SetAllPoints(totem)
totemBG:SetTexture(cfg.statusbar_texture)
totem.bg = totemBG
totem.bg.multiplier = 0.3
totems[i] = totem
end
self.TotemBar = totems
end
end
the only issue now is the background color as the totems tick down is white, when I want it black. I'm sure I can fiddle around and figure that out, but incase someone sees something obvious, pointing me in the right direction would be helpful.
thanks again