Thread: artifact xp bar
View Single Post
08-31-16, 08:34 PM   #12
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by Uitat View Post
i thought thats what i was doing with this

self:SetValue(artifactXP/xpForNextPoint)
artifactXP/xpForNextPoint is a mathematical expression that evaluates to a number that is used as the current value, it doesn't tell the function in any way what the range the StatusBar is supposed to cover. To define that, you use StatusBar:SetMinMaxValues().
Code:
self:SetMinMaxValues(0,xpForNextPoint)
self:SetValue(artifactXP)
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote