In your UpdateButton add these lines
Code:
if IsAddOnLoaded("Tabard-O-Matic") then
local slot = button:GetID()
local link = GetContainerItemLink(item.bagID, slot)
if (link) then
local ItemID = tonumber(link:match("item:(%d+)"))
local TabardValue = TabardTextures[ItemID]
if TabardValue then
Tabard_O_Matic:SetTheButtons(button, TabardValue.ItemName)
end
end
end
And that's all cargBags will now show Tabard-o-Matic tabards