View Single Post
08/11/14, 08:29 AM   #2
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
Asuming you cannot get the current filters (wich seems likely), there is an alternative:
Make extra UI elements (a small window plus Elements mirroring the search Filter). At any time the user can choose to apply those settings to the search store filters.

This would also allow you to save different "sets" of parameters and persist them in saved variables between sessions.
Just getting all those traits (and thier localised names) could be tricky. I look if libCosntantMapper could get you the data you need for the filters.

Edit:
Seems to be one straightfoward enumeration at least for the types of filter to be used:
TRADING_HOUSE_FILTER_TYPE_ARMOR = 3
TRADING_HOUSE_FILTER_TYPE_ENCHANTMENT = 9
TRADING_HOUSE_FILTER_TYPE_EQUIP = 0
TRADING_HOUSE_FILTER_TYPE_ITEM = 1
TRADING_HOUSE_FILTER_TYPE_LEVEL = 6
TRADING_HOUSE_FILTER_TYPE_PRICE = 7
TRADING_HOUSE_FILTER_TYPE_QUALITY = 5
TRADING_HOUSE_FILTER_TYPE_TRAIT = 4
TRADING_HOUSE_FILTER_TYPE_VETERAN_LEVEL = 8
TRADING_HOUSE_FILTER_TYPE_WEAPON = 2

Last edited by zgrssd : 08/11/14 at 08:33 AM.
  Reply With Quote