That was something I said I was going to add to FilterIt a long time ago, but never did.
As you said it takes very little code:
EDIT 1: I forgot to hide the quest filter, added.
EDIT 2: Heres one for you...I just realized the trading house additional filter does NOT filter out bound items? Might as well fix that too. Removed EDIT 2. I just realized it will mess up the filtering libraries for the trading house.
Lua Code:
local function InitTradingHouseLayout()
BACKPACK_TRADING_HOUSE_LAYOUT_FRAGMENT.layoutData.inventoryTopOffsetY = 43
BACKPACK_TRADING_HOUSE_LAYOUT_FRAGMENT.layoutData.hiddenFilters = { [ITEMFILTERTYPE_QUEST] = true }
end
local origSetTradingHouseMode = ZO_InventoryManager.SetTradingHouseModeEnabled
function ZO_InventoryManager:SetTradingHouseModeEnabled(enabled)
origSetTradingHouseMode(self, enabled)
ZO_PlayerInventoryTabs:SetHidden(false)
end
Although now that I'm thinking about it. I might as well add it to FilterIt.