Verified Commit e2cd0f76 authored by Repooc's avatar Repooc
Browse files

Keep in line with commit elvui/elvui@32cb9a53

parent 3169eb4e
......@@ -82,16 +82,18 @@ end
local function GetInfo(id)
local info = C_CurrencyInfo_GetCurrencyInfo(id)
if info then
return info.name, info.quantity, (info.iconFileID and format(iconString, info.iconFileID)) or '136012'
else
return '', '', '136012'
return info.name, info.quantity, info.maxQuantity, (info.iconFileID and format(iconString, info.iconFileID)) or '136012'
end
end
local function AddInfo(id)
local name, num, icon = GetInfo(id)
local name, num, max, icon = GetInfo(id)
if name then
DT.tooltip:AddDoubleLine(format('%s %s', icon, name), BreakUpLargeNumbers(num), 1, 1, 1, 1, 1, 1)
local textRight = '%s'
if E.global.datatexts.settings.Currencies.maxCurrency and max and max > 0 then
textRight = '%s / '..BreakUpLargeNumbers(max)
end
DT.tooltip:AddDoubleLine(format('%s %s', icon, name), format(textRight, BreakUpLargeNumbers(num)), 1, 1, 1, 1, 1, 1)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment