Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » currency display issues


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off