WoWInterface SVN mikma

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /CurrencyTracker
    from Rev 298 to Rev 601
    Reverse comparison

Rev 298 → Rev 601

Alliance.tga Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
Horde.tga Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
CurrencyTracker.toc
1,8 → 1,8
## Title: CurrencyTracker
## Notes: Feeds currencies tracked into LibDataBroker
## Author: Mikma
## Interface: 30100
## Version: 1.3
## Interface: 40000
## Version: 1.4
## SavedVariables: CurrencyTrackerDB
 
LibStub.lua
CurrencyTracker.lua
30,11 → 30,8
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