Hello folks,
as seen
here i have set up a currency display on my orderhallbar.
So i wanted to step up the game and update the currencies with
Code:
hooksecurefunc("TokenFrame_Update", getCurrencies)
the issue i'm having is that the 3rd currency still is displayed, even when it jumps to the 2nd slot after the update. when i use something like
Code:
local function updateCurrencies()
currency = {}
prevName = nil
getCurrencies()
end
hooksecurefunc("TokenFrame_Update", updateCurrencies)
I'm out of ideas how to solve this as every attempt i've made failed miserably and open to improvements alltogether, as i'm sure there's something more elegant anyways.
Thanks in advance WoWI community.