I realy like your research assistant, and I think he can help a lot for inventory management too.
When we are using more than 1 style of armor (light + medium + heavy) we can had a lot of items and a lot are researchable.
One way to fix that is set as junk items we don't use.
But in the craft view we can't see the junk items.
With your addon we can see the researchable items, and with a little modification, we can Add a different color for Junk Item (or a new column maybe) it could help a lot :)
with local bIsJunk = IsItemJunk(bagId, slotIndex)
we can know if one item is junk or not.
I don't know how to add a column, but this code works :)
From your lua
Code:
local function AddResearchIndicatorToSlot(control)
(...)
local bIsJunk = IsItemJunk(bagId, slotIndex)
if(magicTrait) then
-- Item is searchable
if(ownedTraits[magicTrait] and ownedTraits[magicTrait] > 1 ) then
indicatorControl:SetColor(1, 1, 0, 1)
else
if(bIsJunk) then
-- if junk, red
indicatorControl:SetColor(1, 0, 0, 1)
else
-- if not junk, blue
indicatorControl:SetColor(0, 1, 1, 1)
end
end
else
-- Item is already known
if(bIsJunk) then
-- if junk, orange
indicatorControl:SetColor(1, 0.5, 0, 1)
else
-- if not junk, green
indicatorControl:SetColor(0, 1, 0, 1)
end
end
But I'm sure you can do really better than me :)
|