local mybar = CreateFrame("StatusBar", nil, self)
mybar.expression = "return random() * 100"
mybar.min = "return 0"
mybar.max = "return 100"
mybar.color1 = "return random(), random(), random(), 1"
mybar.length = 100
mybar.height = 15
mybar.direction = WidgetBar.DIR_EAST
mybar.update = 200
mybar.texture = cfg.tex
mybar:SetPoint("BOTTOM", self.Health, "TOP")
mybar:SetMinMaxValues(0, 100)
mybar:SetStatusBarTexture(mybar.texture)
mybar:SetValue(50)
mybar:SetHeight(mybar.height)
mybar:SetWidth(mybar.length)
mybar:GetStatusBarTexture():SetHorizTile(true)
-- provide a status bar for each widget: {mybar1, mybar2}
self.ScriptableBar = {mybar}