Thread: GetCurrencyInfo
View Single Post
12-10-11, 05:48 PM   #4
Barjack
A Black Drake
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 89
It does indeed seem that the maximum values are incorrect as returned by that function (or perhaps just returned multiplied by 100 for some reason). I checked some other UI functions like GetCurrencyListInfo and they also return values inflated by 100 times. Unfortunately I think JP and Honor are the only currencies left in the game with hard caps so it's hard to tell if there is a trend going on here.

I checked Blizzard's UI code to see how they do it, and it seems like the answer is that they don't either. No Lua/XML of Blizzard's uses the max value returned by these functions. In fact, the only time the max value appears is on a tooltip when GameTooltip:SetCurrencyToken is called--a hard-coded function. That tooltip also provides info like "Season Total Earned" which is not provided by any Lua-accessible function.

Last edited by Barjack : 12-10-11 at 06:11 PM.
  Reply With Quote