Cata Classic: Tracked Currency Doesn't Update
Clamsoda opened this issue ยท 4 comments
The currency frame, and your implementation of tracked currency on the container frames, don't update in real time when spending currency. You must close the frame and re-open it up to force the currency to refresh.
I added this code to force your token frame to update on CURRENCY_DISPLAY_UPDATE. I saw your comment in your code, I am sure you can make a better implementation.
local eventHandler = CreateFrame("Frame")
eventHandler:RegisterEvent("CURRENCY_DISPLAY_UPDATE")
eventHandler:SetScript("OnEvent", function()
BackpackTokenFrame_Update()
end)
Ah, excellent news,they've added CURRENCY_DISPLAY_UPDATE. That will make life much easier, I can hopefully backport the way it works for retail so it's all done the same way.