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 |
------------------
--Initialization--
------------------
end
end
---------------
--Interaction--
---------------
end
do
if entry1 . categoryIndex ~= entry2 . categoryIndex then
return entry1 . categoryIndex < entry2 . categoryIndex
elseif entry1 . subcategoryIndex ~= entry2 . subcategoryIndex then
return entry1 . subcategoryIndex < entry2 . subcategoryIndex
elseif entry1 . sortOrder ~= entry2 . sortOrder then
return entry1 . sortOrder < entry2 . sortOrder
else
end
end
end
end
local categoryMapping = { }
local lists = { }
local currentCategoryIndex
local currentSubcategoryIndex
local currentList
--We presorted by category above to make this part easier
-- Everything should be put into a subcategory, since we don't handle categories and subcategories elegantly in this scene
if currentCategoryIndex ~= data . categoryIndex or currentSubcategoryIndex ~= data . subcategoryIndex then
currentList = { }
{
collectibles = currentList ,
} )
end
end
end
return lists
end
local questAcceptLabelStringId = data . active and SI_DLC_BOOK_QUEST_STATUS_ACCEPTED or SI_DLC_BOOK_QUEST_STATUS_NOT_ACCEPTED
self . questStatusControl : SetText ( zo_strformat ( SI_DLC_BOOK_QUEST_STATUS , questName , GetString ( questAcceptLabelStringId ) ) )
local canUnlockOnStore = data . unlockState ~= COLLECTIBLE_UNLOCK_STATE_UNLOCKED_OWNED and data . purchasable
local canUpgrade = data . unlockState ~= COLLECTIBLE_UNLOCK_STATE_UNLOCKED_OWNED and data . requiresEntitlement
if showsQuest then
if canUnlockOnStore or canUnlockWithSubscription or canUpgrade then
local acquireText = canUpgrade and GetString ( SI_COLLECTIONS_QUEST_AVAILABLE_WITH_UPGRADE ) or GetString ( SI_COLLECTIONS_QUEST_AVAILABLE_WITH_UNLOCK )
else
end
else
end
local questAcceptButtonStringId = data . active and SI_DLC_BOOK_ACTION_QUEST_ACCEPTED or SI_DLC_BOOK_ACTION_ACCEPT_QUEST
self . questAcceptButton : SetEnabled ( data . unlockState ~= COLLECTIBLE_UNLOCK_STATE_LOCKED and not data . active )
end
end
end
end
end
end
----------
--Events--
----------
end
end
ZO_Dialogs_ShowDialog ( "CONFIRM_OPEN_URL_BY_TYPE" , { urlType = APPROVED_URL_ESO_ACCOUNT_SUBSCRIPTION } , { mainTextParams = { GetString ( SI_ESO_PLUS_SUBSCRIPTION_LINK_TEXT ) , GetString ( SI_URL_APPLICATION_WEB ) } } )
end
end
DLC_BOOK_KEYBOARD = DLCBook_Keyboard : New ( control , "dlcBook" , COLLECTIBLE_CATEGORY_TYPE_CHAPTER , COLLECTIBLE_CATEGORY_TYPE_DLC )
end |