I added a couple new lines in UnitFrames/Variables.lua to yeild an info text in the form "xx.x%"
The first, of course was the variable declaration:
Code:
state:AddSlot("Txt_fpxptxt");
state:AddSlot("Txt_sxptxt");
return true;
and the second was the actual calculation of the variable:
Code:
local fxp = UnitXP("player")/UnitXPMax("player");
local sxptxt = (floor(fxp * 1000)/10) .. "%";
local fpxptxt = floor((UnitXP("player")/UnitXPMax("player")) * 100) ..<snip>
Which yields text on my XP bar in the form of "76.8%"
Just thought I would share