View Single Post
08/12/14, 06:20 PM   #11
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by Randactyl View Post
ZO_ScrollList_UpdateScroll is hooked so AF can update (decrease) the size of the inventory scroll container and move its anchor if there is a set of subfilters for that tab.
Going off-topic here, but I'd rather do that after ChangeFilter, instead of hooking ZO_ScrollList_UpdateScroll which is used by a variety of lists:
Lua Code:
  1. --    ZO_PreHook(PLAYER_INVENTORY, "ChangeFilter", ChangeFilter)
  2. --    ZO_PreHook("ZO_ScrollList_UpdateScroll", RearrangeControls)
  3.     local zorgChangeFilter = ZO_InventoryManager.ChangeFilter
  4.     local function advancedChangeFilter(self, filterTab)
  5.         ChangeFilter(self, filterTab)
  6.         zorgChangeFilter(self, filterTab)
  7.         local inventoryType = filterTab.inventoryType
  8.         local inventory = self.inventories[inventoryType]
  9.         RearrangeControls(inventory.listView)
  10.     end
  11.     ZO_InventoryManager.ChangeFilter = advancedChangeFilter
  Reply With Quote