Mercurial > wow > buffalo2
comparison ObjectiveTracker/Events.lua @ 39:92534dc793f2
- restore the previous QuestLogSelection after pulling for selection-restricted quest data; fixes icon mixups while quest map is open
- moved progressbar builders into the schema environment, with all the other Frame.lua functions; prep for configuration access
- relegate the various removal events to a framescript in their corresponding blocks; this takes care of resolving dead frames
| author | Nenue |
|---|---|
| date | Thu, 21 Apr 2016 16:43:37 -0400 |
| parents | 1f8f9cc3d956 |
| children | 03ed70f846de |
comparison
equal
deleted
inserted
replaced
| 38:1f8f9cc3d956 | 39:92534dc793f2 |
|---|---|
| 29 | 29 |
| 30 --return OBJECTIVE_TRACKER_UPDATE_MODULE_QUEST | 30 --return OBJECTIVE_TRACKER_UPDATE_MODULE_QUEST |
| 31 end | 31 end |
| 32 | 32 |
| 33 T.AddTrackedAchievement = function(cheevID) | 33 T.AddTrackedAchievement = function(cheevID) |
| 34 T.CleanWidgets() | |
| 35 --return OBJECTIVE_TRACKER_UPDATE_MODULE_ACHIEVEMENT | 34 --return OBJECTIVE_TRACKER_UPDATE_MODULE_ACHIEVEMENT |
| 36 end | 35 end |
| 37 | 36 |
| 38 | 37 |
| 39 T.RemoveTrackedAchievement = function(cheevID) | 38 T.RemoveTrackedAchievement = function(cheevID) |
| 40 T.CleanWidgets() | |
| 41 --return OBJECTIVE_TRACKER_UPDATE_MODULE_ACHIEVEMENT | 39 --return OBJECTIVE_TRACKER_UPDATE_MODULE_ACHIEVEMENT |
| 42 end | 40 end |
| 43 | 41 |
| 44 T.AcceptQuest = function() | 42 T.AcceptQuest = function() |
| 45 end | 43 end |
| 65 | 63 |
| 66 | 64 |
| 67 T.SetSuperTrackedQuestID = function(questID) | 65 T.SetSuperTrackedQuestID = function(questID) |
| 68 --T:Update() | 66 --T:Update() |
| 69 end | 67 end |
| 68 | |
| 69 local previousSelection | |
| 70 local tprint = B.print('Tracker') | |
| 71 T.SelectQuestLogEntry = function(logIndex) | |
| 72 if previousSelection and previousSelection ~= logIndex then | |
| 73 tprint('swapping selection from', previousSelection, 'to', logIndex) | |
| 74 end | |
| 75 previousSelection = logIndex | |
| 76 end |
