Back to Home

ESO Lua File v100021

ingame/tradinghouse/furnishingsfilter_shared.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function ZO_FurnishingsFilter_ApplyToSearch(search, categoryData, subcategoryData, specializedItemTypeData)
    if categoryData then
        search:SetFilter(TRADING_HOUSE_FILTER_TYPE_FURNITURE_CATEGORY, categoryData.minValue)
    else
        search:SetFilter(TRADING_HOUSE_FILTER_TYPE_FURNITURE_CATEGORY, nil)
    end
    if subcategoryData then
        search:SetFilter(TRADING_HOUSE_FILTER_TYPE_FURNITURE_SUBCATEGORY, subcategoryData.minValue)
    else
        search:SetFilter(TRADING_HOUSE_FILTER_TYPE_FURNITURE_SUBCATEGORY, nil)
    end
    search:SetFilter(TRADING_HOUSE_FILTER_TYPE_SPECIALIZED_ITEM, specializedItemTypeData.minValue)
end