Thread: artifact xp bar
View Single Post
08-31-16, 09:58 PM   #13
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
thank you all for the info, it physically works now just the text formatting

this is my formatting for the standard xp/rep bars, how would i implement this here, as i am unable to fully comprehend the API for the artifact bars i am still having issues

Lua Code:
  1. local xp, max, rest = UnitXP("player"), UnitXPMax("player"), GetXPExhaustion()
  2. text:SetFormattedText("Level %d XP: %d / %d", level, xp, max)

would i change out to

Lua Code:
  1. local  max, current  =  xpForNextPoint, artifactXP
  2. text:SetFormattedText("XP: %d / %d ", current , max)
__________________
  Reply With Quote