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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
--
--[[ ZO_CrownStore_Keyboard ]] --
--
end
self : SetFeaturedMarketProductFiltersMask ( MARKET_PRODUCT_FILTER_TYPE_COST_CROWNS + MARKET_PRODUCT_FILTER_TYPE_COST_CROWN_GEMS )
local filterTypes =
{
MARKET_PRODUCT_FILTER_TYPE_COST_CROWNS ,
MARKET_PRODUCT_FILTER_TYPE_COST_CROWN_GEMS ,
}
local newFilterTypes =
{
MARKET_PRODUCT_FILTER_TYPE_NEW + MARKET_PRODUCT_FILTER_TYPE_COST_CROWNS ,
MARKET_PRODUCT_FILTER_TYPE_NEW + MARKET_PRODUCT_FILTER_TYPE_COST_CROWN_GEMS ,
}
ZO_CHAPTER_UPGRADE_MANAGER : RegisterCallback ( "ChapterUpgradeDataUpdated" , function ( ... ) self : OnChapterUpgradeDataUpdated ( ... ) end )
end
-- Begin ZO_Market_Shared overrides
end
-- Instead of opening the market as soon as the Crown Store data is ready
-- we need to wait to make sure the chapter upgrade data is also ready
-- (This avoids an issue were we would build the Crown Store and then
-- immediately rebuild once the chapter data was ready)
local chapterUpgradeDataReady = chapterUpgradeState == MARKET_STATE_OPEN or chapterUpgradeState == MARKET_STATE_LOCKED
end
end
-- End ZO_Market_Shared overrides
self . chapterUpgradePaneObject = ZO_ChapterUpgradePane_Keyboard : New ( chapterUpgradePage : GetNamedChild ( "ScrollScrollChildPane" ) , self )
self . chapterUpgradeButtonContainer . standardButton = self . chapterUpgradeButtonContainer : GetNamedChild ( "Standard" )
self . chapterUpgradeButtonContainer . collectorsButton = self . chapterUpgradeButtonContainer : GetNamedChild ( "Collectors" )
if chapterUpgradeData then
ZO_ShowChapterPrepurchasePlatformDialog ( chapterUpgradeData : GetChapterUpgradeId ( ) , isCollectorsEdition , CHAPTER_UPGRADE_SOURCE_IN_GAME )
else
end
end
end
local IS_STANDARD_EDITION = false
end )
local IS_COLLECTORS_EDITION = true
end )
end
else
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
-- chapter upgrade category + subcategories
if numChapters > 0 then
local normalIcon = "esoui/art/treeicons/store_indexIcon_Chapters_up.dds"
local pressedIcon = "esoui/art/treeicons/store_indexIcon_Chapters_down.dds"
local mouseoverIcon = "esoui/art/treeicons/store_indexIcon_Chapters_over.dds"
local areAnyNew = false
return areAnyNew
end
local chaptersNode = self : AddCustomTopLevelCategory ( ZO_MARKET_CHAPTER_UPGRADE_CATEGORY_INDEX , GetString ( SI_MAIN_MENU_CHAPTERS ) , numChapters , normalIcon , pressedIcon , mouseoverIcon , ZO_MARKET_CATEGORY_TYPE_CHAPTER_UPGRADE , AreAnyNew )
for index = 1 , numChapters do
areAnyNew = areAnyNew or isNew
self : AddCustomSubcategory ( chaptersNode , chapterUpgradeData : GetChapterUpgradeId ( ) , chapterUpgradeData : GetName ( ) , ZO_MARKET_CATEGORY_TYPE_CHAPTER_UPGRADE , isNew )
end
isEmpty = false
end
local name , numSubCategories , numMarketProducts , normalIcon , pressedIcon , mouseoverIcon = GetMarketProductCategoryInfo ( displayGroup , i )
if self : AddMarketProductTopLevelCategory ( i , name , numSubCategories , normalIcon , pressedIcon , mouseoverIcon , ZO_MARKET_CATEGORY_TYPE_NONE , function ( )
return self : DoesCategoryOrSubcategoriesContainFilteredProducts ( displayGroup , i , ZO_NO_MARKET_SUBCATEGORY , self . newMarketProductFilterTypes )
end ) then
isEmpty = false
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
else
end
end
if not isOwned then
local collectorsButtonText = isContentPass and GetString ( SI_CHAPTER_UPGRADE_CONTENT_PASS_COLLECTORS_BUTTON ) or GetString ( SI_CHAPTER_UPGRADE_COLLECTORS_BUTTON )
end
end
end
end
end
end
end
end
end
-- End ZO_Market_Keyboard overrides
--
--[[ XML Handlers ]] --
--
end |