View Single Post
08/11/14, 12:39 PM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Just an untested idea - when you close trading house window, all filters gets reset using the TRADING_HOUSE:ResetAllSearchData() function.
As you want to keep old filters, what about hooking this function that it will not reset filters?
Something like:
Lua Code:
  1. ZO_PreHook(TRADING_HOUSE, "ResetAllSearchData", function(self)
  2.    self:ClearSearchResults() --you don't want to keep old search results, so clear them
  3.    return true --true means that origianl function won't be called
  4. end)

Last edited by Garkin : 08/11/14 at 06:01 PM. Reason: missing bracket
  Reply With Quote