Added basic loot filter system, you can create a new filter by creating a new lua table and dropping it in data/lootfilters, that looks like this:
return {
name = 'Default',
rules = {
-- Hide all items
{
match = function (item)
return false
end
},
-- Show all currency items & display them as blue
{
match = function (item)
-- Just for testing
if item.baseName == 'Orb of Alteration' then
return true
end
-- Nil to skip match otherwise
return nil
end,
look = {
color = Colors.Blue,
borderSize = 10,
},
},
-- Show all currency items with stack size > 3 as green with 18pt font
{
match = function (item)
-- Just for testing
if item.baseName == 'Orb of Alteration' and item.count > 3 then
return true
end
-- Nil to skip match otherwise
return nil
end,
look = {
color = Colors.Green,
fontSize = 18,
},
},
},
}
Then it ends up looking like pic related according to the filter rules.