SetCurrencyByID, SetCurrencyToken and SetCurrencyTokenByID not firing?
So I'm having this bizarre issue where SetCurrencyByID, SetCurrencyToken and SetCurrencyTokenByID are not firing at all when hovering over a token cost in token vendors. Such as War Resources or Honor Tokens and such.
I've tried several methods to figure out why they aren't firing and can only assume another hidden function is being used for GameTooltip. I know it has to do with AltCurrency but can't seem to figure out how to grab the CurrencyID or token being fired for the GameTooltip. Some of these token currencies are pushed to AltCurrencyFrame_Update. Yet not matter what I do or what I hook, I cannot get the token currency to fire for GameTooltip. Does anyone have any ideas? I've tried the following. Code:
The ONLY thing that seems to work is to hook into the token frames themselves under the merchant frame. Code:
hooksecurefunc("MerchantFrame_UpdateAltCurrency", function(index, indexOnPage, canAfford) Code:
|
Quote:
Can you try hooking GameTooltip:SetMerchantCostItem() https://github.com/Gethe/wow-ui-sour...Frame.xml#L328 |
Quote:
|
Quote:
Many thanks for your help! It was driving me crazy. Here is the code that works. Code:
hooksecurefunc(objTooltip, "SetMerchantCostItem", function(self, index, currencyIndex) |
All times are GMT -6. The time now is 05:34 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI