View Single Post
11/27/14, 07:21 PM   #37
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Found another issue with the new libFilters - Advanced Filters don't work at all at vendor Sell tab, mail Send tab, and probably other places. Reason is there are different additionalFilters applied to backpack contents depending on where you access it from : MENU_BAR, BANK (deposit), STORE (vendor sell), TRADING_HOUSE (guild store sell), MAIL (send), PLAYER_TRADE. For example PLAYER_TRADE must hide bound items, that's what additionalFilter does.

Previously whenever you called libFilters:RegisterFilter(x, LAF_BAGS, y), it hooked PLAYER_INVENTORY.inventories[INVENTORY_BACKPACK].additionalFilter, no matter where you were. In my version this no longer happens, additionalFilter is assigned from a backpack layout fragment when that fragment is shown. So when you go to an NPC vendor, BACKPACK_STORE_LAYOUT_FRAGMENT is shown and only LAF_STORE filters applied.

There are 2 possible solutions:
a) either include LAF_BAGS filters in all other backpack filters, maintaining backward compatibility, or
b) change Advanced Filters to register LAF_STORE, LAF_MAIL, LAF_TRADE in addition to LAF_BAGS.
  Reply With Quote