View Single Post
12-15-18, 10:04 AM   #1
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
Sorting Tooltip for money by Faction

currently i have a mouseover tooltip in mt datatext that shows me my currents relms charators total gold.

Code:
			local totalGold = 0				
			GameTooltip:AddLine("Character's: ")			
			local thisRealmList = BasicDB.Currency[myPlayerRealm];
			for k,v in pairs(thisRealmList) do
				GameTooltip:AddDoubleLine(k, formatMoney(v), 1, 1, 1, 1, 1, 1)
				totalGold=totalGold+v;
			end
Which Gives me this return:


I have both Horde and Alliance I would like to see how much gold i have on each faction beings you cannot send gold to other factions.

Any help would be great.

P.S. If you need more code my whole addon is on GitHub Here. And this is in the Datatext.lua file under bags.

Thanks
Coke
  Reply With Quote