View Single Post
10-11-20, 06:39 AM   #2
Voopie
A Murloc Raider
 
Voopie's Avatar
Join Date: Sep 2018
Posts: 4
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
  Reply With Quote