2,875
edits
(Add icon overrides for Abyssal currencies) |
m (Fix derp again) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
local iconTable = { | local iconTable = { | ||
['GP'] = function(amount) return Icons._Currency('GP', amount) end, | |||
['SC'] = function(amount) return Icons._Currency('SC', amount) end, | |||
['AP'] = function(amount) return Icons._Currency('AP', amount) end, | |||
['ASC'] = function(amount) return Icons._Currency('ASC', amount) end, | |||
} | } | ||
local function getItemIcon(itemName, amount) | local function getItemIcon(itemName, amount) | ||
local iconFunc = iconTable[itemName] | |||
if iconFunc then | |||
return iconFunc(amount) | |||
else | |||
return Icons.Icon({itemName, type='item', qty = amount, notext=true}) | |||
end | |||
end | end | ||
edits