1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
end
self : SetNewMarketProductFilterTypes ( { MARKET_PRODUCT_FILTER_TYPE_NEW + MARKET_PRODUCT_FILTER_TYPE_COST_ENDEAVOR_SEALS } )
end
function ZO_EndeavorSealStore_Keyboard : GetCategoryMarketProductPresentations ( categoryIndex , marketProductPresentations )
local numSubcategories , numMarketProducts = select ( 2 , GetMarketProductCategoryInfo ( displayGroup , categoryIndex ) )
self : GetMarketProductPresentations ( categoryIndex , ZO_NO_MARKET_SUBCATEGORY , numMarketProducts , marketProductPresentations )
end
for subcategoryIndex = 1 , numSubcategories do
if self : DoesCategoryContainFilteredProducts ( displayGroup , categoryIndex , subcategoryIndex , self . marketProductFilterTypes ) then
local numSubcategoryMarketProducts = select ( 2 , GetMarketProductSubCategoryInfo ( displayGroup , categoryIndex , subcategoryIndex ) )
self : GetMarketProductPresentations ( categoryIndex , subcategoryIndex , numSubcategoryMarketProducts , marketProductPresentations )
end
end
end
-- Begin ZO_Market_Keyboard overrides
local isEmpty = true
-- featured items category
local normalIcon = "esoui/art/treeicons/achievements_indexicon_summary_up.dds"
local pressedIcon = "esoui/art/treeicons/achievements_indexicon_summary_down.dds"
local mouseoverIcon = "esoui/art/treeicons/achievements_indexicon_summary_over.dds"
local NO_SUBCATEGORIES = 0
self : AddCustomTopLevelCategory ( ZO_MARKET_FEATURED_CATEGORY_INDEX , GetString ( SI_MARKET_FEATURED_CATEGORY ) , NO_SUBCATEGORIES , normalIcon , pressedIcon , mouseoverIcon , ZO_MARKET_CATEGORY_TYPE_FEATURED , function ( )
end )
isEmpty = false
end
for categoryIndex = 1 , numCategories do
if self : DoesCategoryOrSubcategoriesContainFilteredProducts ( displayGroup , categoryIndex , ZO_NO_MARKET_SUBCATEGORY , self . marketProductFilterTypes ) then
local name , numSubCategories , numMarketProducts , normalIcon , pressedIcon , mouseoverIcon = GetMarketProductCategoryInfo ( displayGroup , categoryIndex )
if self : AddMarketProductTopLevelCategory ( categoryIndex , name , numSubCategories , normalIcon , pressedIcon , mouseoverIcon , ZO_MARKET_CATEGORY_TYPE_NONE , function ( )
return self : DoesCategoryOrSubcategoriesContainFilteredProducts ( displayGroup , categoryIndex , ZO_NO_MARKET_SUBCATEGORY , self . newMarketProductFilterTypes )
end ) then
isEmpty = false
end
end
end
else
local name , numSubCategories , numMarketProducts , normalIcon , pressedIcon , mouseoverIcon = GetMarketProductCategoryInfo ( displayGroup , categoryIndex )
self : AddMarketProductTopLevelCategory ( categoryIndex , name , numSubCategories , normalIcon , pressedIcon , mouseoverIcon , ZO_MARKET_CATEGORY_TYPE_NONE , function ( )
return self : DoesCategoryOrSubcategoriesContainFilteredProducts ( displayGroup , categoryIndex , ZO_NO_MARKET_SUBCATEGORY , self . newMarketProductFilterTypes )
end )
end
isEmpty = false
end
end
-- End ZO_Market_Keyboard overrides
--
--[[ XML Handlers ]] --
--
ENDEAVOR_SEAL_STORE_KEYBOARD = ZO_EndeavorSealStore_Keyboard : New ( control , "endeavorSealStoreSceneKeyboard" )
end |