Mercurial > wow > buffalo2
comparison ObjectiveInfo.lua @ 3:3397aae1f44d
- use the correct key value when searching for action buttons
- handle pre-built frames from XML
| author | Nenue |
|---|---|
| date | Thu, 31 Mar 2016 07:32:05 -0400 |
| parents | a2396b03ce63 |
| children | e9b61fd5f607 |
comparison
equal
deleted
inserted
replaced
| 2:a2396b03ce63 | 3:3397aae1f44d |
|---|---|
| 126 end | 126 end |
| 127 Cheevs.GetInfo = function(self, index) | 127 Cheevs.GetInfo = function(self, index) |
| 128 local cheevID = Cheevs.trackedCheevs[index] | 128 local cheevID = Cheevs.trackedCheevs[index] |
| 129 local id, name, points, completed, month, day, year, description, flags, icon, rewardText, isGuildAch, wasEarnedByMe, earnedBy = GetAchievementInfo(cheevID) | 129 local id, name, points, completed, month, day, year, description, flags, icon, rewardText, isGuildAch, wasEarnedByMe, earnedBy = GetAchievementInfo(cheevID) |
| 130 | 130 |
| 131 print('|cFF00FF00', GetAchievementNumCriteria(cheevID)) | |
| 132 self.Info[cheevID] = {} | 131 self.Info[cheevID] = {} |
| 133 local c = self.Info[cheevID] | 132 local c = self.Info[cheevID] |
| 134 c.type = 'Cheevs' | 133 c.type = 'Cheevs' |
| 135 c.watchIndex = index | 134 c.watchIndex = index |
| 136 c.cheevID = cheevID | 135 c.cheevID = cheevID |
| 152 assetID = assetID, | 151 assetID = assetID, |
| 153 quantityString = quantityString, | 152 quantityString = quantityString, |
| 154 criteriaID = criteriaID, | 153 criteriaID = criteriaID, |
| 155 } | 154 } |
| 156 end | 155 end |
| 156 print('Cheevs.|cFF0088FFGetInfo|r('..index..')', 'obj:', GetAchievementNumCriteria(cheevID), name, description) | |
| 157 | 157 |
| 158 self.WatchInfo[index] = c | 158 self.WatchInfo[index] = c |
| 159 return self.Info[cheevID] | 159 return self.Info[cheevID] |
| 160 end | 160 end |
