2,875
edits
(Adjust to new Icons.Currency function) |
(Fix derp) |
||
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) | ||
return iconTable[itemName] or Icons.Icon({itemName, type='item', qty = amount, notext=true}) | return iconTable[itemName] or Icons.Icon({itemName, type='item', qty = amount, notext=true}) |
edits