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 |
--
--[[ ZO_CrownStore_Keyboard ]] --
--
end
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 )
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
-- featured items category
if numFeaturedMarketProducts > 0 then
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 ( ) return HasNewFeaturedMarketProducts ( ) end )
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
end
local name , numSubCategories , numMarketProducts , normalIcon , pressedIcon , mouseoverIcon = GetMarketProductCategoryInfo ( MARKET_DISPLAY_GROUP_CROWN_STORE , i )
self : AddMarketProductTopLevelCategory ( i , name , numSubCategories , normalIcon , pressedIcon , mouseoverIcon , ZO_MARKET_CATEGORY_TYPE_NONE , function ( ) return DoesMarketProductCategoryOrSubcategoriesContainNewMarketProducts ( MARKET_DISPLAY_GROUP_CROWN_STORE , i ) end )
end
else
local name , numSubCategories , numMarketProducts , normalIcon , pressedIcon , mouseoverIcon = GetMarketProductCategoryInfo ( MARKET_DISPLAY_GROUP_CROWN_STORE , categoryIndex )
self : AddMarketProductTopLevelCategory ( categoryIndex , name , numSubCategories , normalIcon , pressedIcon , mouseoverIcon , ZO_MARKET_CATEGORY_TYPE_NONE , function ( ) return DoesMarketProductCategoryOrSubcategoriesContainNewMarketProducts ( MARKET_DISPLAY_GROUP_CROWN_STORE , categoryIndex ) end )
end
end
end
else
end
end
end
end
end
end
end
end
-- End ZO_Market_Keyboard overrides
--
--[[ XML Handlers ]] --
--
end |