Quantcast
WoWInterface - View Single Post - currency display issues
View Single Post
09-28-17, 05:49 AM   #1
Lolzen
An Aku'mai Servant
 
Lolzen's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 36
currency display issues

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.


Last edited by Lolzen : 09-28-17 at 05:59 AM. Reason: picture
  Reply With Quote