Bagnon

Bagnon

124M Downloads

Enhancement: Money tooltip, money total, use thousand-separator

Takamoko opened this issue ยท 0 comments

commented

Thanks for the addon, I use it for some years. Just one smal change (see title). I can do it myself, but it would get overwritten by a new version. I changed two lines in moneyFrame.lua:

function MoneyFrame:OnEnter()
...
-- Total
local total = 0
for i, player in Addon.Cache:IteratePlayers() do
total = total + Addon.Cache:GetPlayerMoney(player)
end
-- next line added
total = self:GetCoinsText(total)

GameTooltip:SetOwner...

-- next line changed
GameTooltip:AddDoubleLine(L.Total, total, nil,nil,nil, 1,1,1)
...

Takamoko