if BackpackTokenFrame.shouldShow then |
CurrencyTrackerDB[GetRealmName()][UnitName("player")] = {} |
for i=1,GetNumWatchedTokens() do |
local name, count, extraCurrencyType, icon = GetBackpackCurrencyInfo(i); |
if extraCurrencyType == 1 then icon = "Interface\\PVPFrame\\PVP-ArenaPoints-Icon" elseif extraCurrencyType == 2 then icon = "Interface\\AddOns\\CurrencyTracker\\"..faction end |
if icon ~= nil then |
if text == "" then text = count.." |T"..icon..":15:15:0:0|t" else text = text.." "..count.." |T"..icon..":15:15:0:0|t" end |
end |
local name, count, icon = GetBackpackCurrencyInfo(i); |
if text == "" then text = count.." |T"..icon..":15:15:0:0|t" else text = text.." "..count.." |T"..icon..":15:15:0:0|t" end |
end |
CurrencyTrackerDB[GetRealmName()][UnitName("player")] = text |
CurrencyTracker.text = text |