View Single Post
08/25/15, 06:03 PM   #41
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
The only thing I can think of is you could add something like this so I know when AGS has taken over & my filters are not going to be used in the Trading House:
Lua Code:
  1. function libCIF:IsGuildStoreSellFiltersDisabled()
  2.     return libCIF._guildStoreSellFiltersDisabled
  3. end


and then I could add this in FilterIt_MenuBars.lua:
Lua Code:
  1. -- I could add this check before performing clear or SetHidden:
  2. if not (GetInteractionType() == INTERACTION_TRADINGHOUSE and libCIF:IsGuildStoreSellFiltersDisabled()) then
  3.     if currentInvFilter ~= ITEMFILTERTYPE_ALL then
  4.         PLAYER_INVENTORY.inventories[iInventory].searchBox:SetHidden(true)
  5.         PLAYER_INVENTORY.inventories[iInventory].searchBox:Clear()
  6.     else
  7.         -- no submenu or Show ALL filter tab so show the search box.
  8.         PLAYER_INVENTORY.inventories[iInventory].searchBox:SetHidden(false)
  9.         PLAYER_INVENTORY.inventories[iInventory].searchBox:Clear()
  10.     end
  11. end
and that should solve that problem
  Reply With Quote