As information:
The new UNIVERSAL_DECONSTRUCTION.deconstructionPanel (and the gamepad one) will get a callback for when the filters (that are: tabs e.g. all/armor/weapon/jewelry/enchantments) or the chosen multiselect dropdown filters change
Lua Code:
function TestOnFilterChanged(tab, craftingTypes, includeBanked)
d("Filter changed:")
d("Tab.key:")
d( tab.key )
--tab.key will identify the selecte filter table of global ZO_UNIVERSAL_DECONSTRUCTION_FILTER_TYPES, which are enchantments, jewelry, armor, weapons, all
d("Crafting Types:")
d(craftingTypes)
df("%s banked items", includeBanked and "Include" or "Exclude")
end
UNIVERSAL_DECONSTRUCTION.deconstructionPanel:RegisterCallback("OnFilterChanged", TestOnFilterChanged)
UNIVERSAL_DECONSTRUCTION_GAMEPAD.deconstructionPanel:RegisterCallback("OnFilterChanged", TestOnFilterChanged)
You will be able to detect the currently active tab via:
UNIVERSAL_DECONSTRUCTION.deconstructionPanel:GetCurrentFilter() which returns the filter table of ZO_UNIVERSAL_DECONSTRUCTION_FILTER_TYPES, so UNIVERSAL_DECONSTRUCTION.deconstructionPanel:GetCurrentFilter().key shows you the key of that tab currently being active
It hits PTS when it's done
Thanks ZOS_DanBatson and Cardinal05, very appreciated you work on my feedback and will add this. It will help a lot!