Mercurial > wow > buffalo2
diff ObjectiveInfo.lua @ 8:7923243ae972
ObjectiveUI & ObjectiveEvents
- securehook to API calls for compatibility with addons that work with the objective tracking interface
- let the API hooks invoke ObjectiveUI functions when possible
- ObjectiveUI framescript handlers should use the corresponding API call if possible, so that addon space can be fully aware of our actions
- Sanity check cached data when possible during 'Remove' hooks
ObjectiveInfo
- Add cheevID to criteria info
ObjectiveCore
- Index quest tracker blocks by their watch offset, and use that to verify whether the given block frame should be released into pool
ObjectiveFrame
- Differentiate between visible and non-visible unused buttons, and only release when their quest has been dropped
author | Nenue |
---|---|
date | Fri, 01 Apr 2016 14:40:14 -0400 |
parents | 589de8ea05b9 |
children | 9455693fc290 |
line wrap: on
line diff
--- a/ObjectiveInfo.lua Fri Apr 01 12:27:05 2016 -0400 +++ b/ObjectiveInfo.lua Fri Apr 01 14:40:14 2016 -0400 @@ -57,8 +57,6 @@ q.isBreadCrumb = IsBreadcrumbQuest(questID) q.isStoryQuest = IsStoryQuest(questID) q.completionText= GetQuestLogCompletionText(questIndex) - q.trackingID = questID - q.superTracked = (questID == GetSuperTrackedQuestID()) -- call directly so artifact data doesn't become an issue q.numObjectives = GetNumQuestLeaderBoards(questIndex) q.isWatched = IsQuestWatched(questIndex) q.objectives = {} @@ -105,6 +103,8 @@ end end + q.superTracked = (questID == GetSuperTrackedQuestID()) -- call directly so artifact data doesn't become an issue + self.WatchInfo[watchIndex] = q self.LogInfo[questIndex] = q print('- logIndex =', questIndex, 'title =', title) return q @@ -147,6 +147,7 @@ for i = 1, c.numObjectives do local description, type, completed, quantity, requiredQuantity, characterName, flags, assetID, quantityString, criteriaID = GetAchievementCriteriaInfo(cheevID, i) c.objectives[i] = { + cheevID = cheevID, text = description, type = type, finished = completed,