View Single Post
10-13-20, 05:53 AM   #3
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
Originally Posted by Voopie View Post
In haste ^-^

https://www.townlong-yak.com/framexm...ckCurrencyInfo
https://www.townlong-yak.com/framexm...etCurrencyInfo

Lua Code:
  1. local currencyInfo;
  2. local r, g, b = 1, 1, 1;
  3.  
  4. for i = 1, GetNumWatchedTokens() do
  5.     currencyInfo = C_CurrencyInfo.GetBackpackCurrencyInfo(i);
  6.  
  7.     if currencyInfo and currencyInfo.name then
  8.         if i == 1 then
  9.             GameTooltip:AddLine(' ');
  10.             GameTooltip:AddLine(CURRENCY .. ':');
  11.         end
  12.  
  13.         r, g, b = GetItemQualityColor(C_CurrencyInfo.GetCurrencyInfo(currencyInfo.currencyTypesID).quality);
  14.         GameTooltip:AddDoubleLine(currencyInfo.name, currencyInfo.quantity, r, g, b, 1, 1, 1);
  15.     end
  16. end
Thank You so much for the help. Works Great.
  Reply With Quote