oUF_ScriptableBar

oUF module providing LIbScriptable bar widgets for layout use.
        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}

The oUF_ScriptableBar Team

profile avatar
  • 18
    Projects
  • 384.6K
    Downloads

More from _ForgeUser189254View all

  • StarTip2 project image

    StarTip2

    • 4.4K
    • Addons

    StarTip2 - Voyage through the stars

    • 4.4K
    • August 26, 2012
    • Addons
  • StarTip project image

    StarTip

    • 204.3K
    • Addons

    StarTip (Tooltips from Outerspace)

    • 204.3K
    • August 30, 2011
    • Addons
  • oUF_ScriptableText project image

    oUF_ScriptableText

    • 0
    • Addons

    oUF module providing LIbScriptable text widgets for layout use.

    • 0
    • August 6, 2011
    • Addons
  • LCD4WoW project image

    LCD4WoW

    • 18.8K
    • Addons

    LCDs for WoW

    • 18.8K
    • July 28, 2011
    • Addons
    • +4
  • StarTip2 project image

    StarTip2

    • 4.4K
    • Addons

    StarTip2 - Voyage through the stars

    • 4.4K
    • August 26, 2012
    • Addons
  • StarTip project image

    StarTip

    • 204.3K
    • Addons

    StarTip (Tooltips from Outerspace)

    • 204.3K
    • August 30, 2011
    • Addons
  • oUF_ScriptableText project image

    oUF_ScriptableText

    • 0
    • Addons

    oUF module providing LIbScriptable text widgets for layout use.

    • 0
    • August 6, 2011
    • Addons
  • LCD4WoW project image

    LCD4WoW

    • 18.8K
    • Addons

    LCDs for WoW

    • 18.8K
    • July 28, 2011
    • Addons
    • +4