Originally Posted by Randactyl
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:
-- ZO_PreHook(PLAYER_INVENTORY, "ChangeFilter", ChangeFilter)
-- ZO_PreHook("ZO_ScrollList_UpdateScroll", RearrangeControls)
local zorgChangeFilter = ZO_InventoryManager.ChangeFilter
local function advancedChangeFilter(self, filterTab)
ChangeFilter(self, filterTab)
zorgChangeFilter(self, filterTab)
local inventoryType = filterTab.inventoryType
local inventory = self.inventories[inventoryType]
RearrangeControls(inventory.listView)
end
ZO_InventoryManager.ChangeFilter = advancedChangeFilter