View Single Post
02-09-11, 05:06 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
http://www.wowpedia.org/Widget_API#StatusBar

WoW offers a simple widget you can use.
lua Code:
  1. local b = CreateFrame("StatusBar", "MyOwnStatusBar")
  2.   b:SetWidth(100)
  3.   b:SetHeight(20)
  4.   b:SetPoint("CENTER",UIParent,"CENTER",0 , 0)
  5.   b:SetMinMaxValues(1,100)
  6.   b:SetOrientation("HORIZONTAL")
  7.   b:SetValue(75)
  8.   b:SetStatusBarTexture("Interface\\TargetingFrame\\UI-StatusBar")
  9.   b:GetStatusBarTexture():SetHorizTile(false)
  10.   b:GetStatusBarTexture():SetVertTile(false)
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote