|
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 |
if achievementId > 0 then endend local categoryName, numSubCategories, numAchievements, earnedPoints, totalPoints = GetAchievementCategoryInfo(categoryIndex) local percentage = (earnedPoints / totalPoints) * 100 end endend -- Titleend local achievementName, description, points, icon, completed, date, time = GetAchievementInfo(achievementId) local isCharacterPersistent = persistenceLevel == ACHIEVEMENT_PERSISTENCE_CHARACTER -- Title local titleStyle = {} if isCharacterPersistent then end -- Achievement display names use gender switching if completed then elseif achievementStatus == ZO_ACHIEVEMENTS_COMPLETION_STATUS.IN_PROGRESS then elseif achievementStatus == ZO_ACHIEVEMENTS_COMPLETION_STATUS.INCOMPLETE then end if isCharacterPersistent then local titleIcon = zo_iconFormatInheritColor("EsoUI/Art/Miscellaneous/Gamepad/gp_charNameIcon.dds", "75%", "75%") local titleText = zo_strformat(SI_ACHIEVEMENT_TITLE_CHARACTER_LEVEL, titleIcon, GetString(SI_GAMEPAD_ACHIEVEMENTS_CHARACTER_PERSISTENT)) end if points ~= ACHIEVEMENT_POINT_LEGENDARY_DEED then statValuePair:SetStat(GetString(SI_GAMEPAD_ACHIEVEMENTS_POINTS_LABEL), self:GetStyle("statValuePairStat")) end -- Body if completed and not isCharacterPersistent then if completeByCharId then if characterName ~= "" then completedSection:AddLine(zo_strformat(SI_ACHIEVEMENT_EARNED_FORMATTER, colorizedCharacterName), self:GetStyle("flavorText")) end end endend if numCriteria == 1 then if numRequired == 1 then -- Do not show a single checkbox. return end end for i = 1, numCriteria do local isComplete = (numCompleted == numRequired) if numRequired == 1 then -- Checkbox criteriaSection:AddSection(self:GetCheckboxSection(zo_strformat(SI_ACHIEVEMENT_CRITERION_FORMAT, description), isComplete)) else -- Progress bar. entrySection:AddLine(zo_strformat(SI_JOURNAL_PROGRESS_BAR_PROGRESS, numCompleted, numRequired), self:GetStyle("statValuePairValueSmall")) end endend local CHECKED_ICON = "EsoUI/Art/Inventory/Gamepad/gp_inventory_icon_equipped.dds" local UNCHECKED_ICON = nil local checkStyle = isComplete and "achievementCriteriaCheckComplete" or "achievementCriteriaCheckIncomplete" local textStyle = isComplete and "achievementDescriptionComplete" or "achievementDescriptionIncomplete" return entrySectionend local hasRewardItem, itemName, iconTextureName, displayQuality = GetAchievementRewardItem(achievementId) local hasRewardTributeCardUpgrade, tributePatronId, tributeCardIndex = GetAchievementRewardTributeCardUpgradeInfo(achievementId) local hasReward = hasRewardItem or hasRewardTitle or hasRewardDye or hasRewardCollectible or hasRewardTributeCardUpgrade if not hasReward then return end -- Item if hasRewardItem then itemSection:AddLine(zo_strformat(SI_GAMEPAD_ACHIEVEMENTS_ITEM_ICON_AND_DESCRIPTION, iconTexture, itemName), ZO_TooltipStyles_GetItemQualityStyle(displayQuality), self:GetStyle("statValuePairValueSmall")) end -- Title if hasRewardTitle then end -- Dye if hasRewardDye then end --Collectible if hasRewardCollectible then rewardsEntrySection:AddLine(collectibleData:GetFormattedName(), self:GetStyle("statValuePairValueSmall")) rewardsEntrySection:AddLine(ZO_CachedStrFormat(SI_COLLECTIBLE_NAME_FORMATTER, collectibleData:GetCategoryTypeDisplayName())) end --Tribute Card Upgrade if hasRewardTributeCardUpgrade then rewardsEntrySection:AddLine(upgradeCardData:GetColorizedFormattedName(), self:GetStyle("statValuePairValueSmall")) endend |