Mercurial > wow > buffalo2
comparison ObjectiveTracker/APIHooks.lua @ 45:dd1ae565f559
Hooks and Handlers:
- correct argument mix-ups for AcceptQuest/QUEST_ACCEPTED handlers; fixes auto-watch
- respond to AcknowledgeAutoAcceptQuest; fixes lingering popups
- include Popup and Quest trackers in the response code for CompleteQuest; fixes content artifacts following the rollover of repeating popups seen in Ashran
- clean up wacky OnEvent header
Layout
- add alpha blend options
QuestData
- reset objectives data when a quest is in a completed state; keeps old data from ever reaching the Default.x code
author | Nenue |
---|---|
date | Tue, 26 Apr 2016 14:57:18 -0400 |
parents | 756e8aeb040b |
children |
comparison
equal
deleted
inserted
replaced
44:756e8aeb040b | 45:dd1ae565f559 |
---|---|
10 local OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP = OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP | 10 local OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP = OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP |
11 local GetQuestID = GetQuestID | 11 local GetQuestID = GetQuestID |
12 local QuestPOIUpdateIcons = QuestPOIUpdateIcons | 12 local QuestPOIUpdateIcons = QuestPOIUpdateIcons |
13 | 13 |
14 --- Module updates triggered by user events | 14 --- Module updates triggered by user events |
15 T.AcknowledgeAutoAcceptQuest = function(...) | |
16 return OBJECTIVE_TRACKER_UPDATE_MODULE_QUEST + OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP | |
17 end | |
15 | 18 |
16 T.AddQuestWatch = function(questID) | 19 T.AddQuestWatch = function(questID) |
17 return OBJECTIVE_TRACKER_UPDATE_MODULE_QUEST | 20 return OBJECTIVE_TRACKER_UPDATE_MODULE_QUEST |
18 end | 21 end |
19 T.AbandonQuest = function() | 22 T.AbandonQuest = function() |
26 end | 29 end |
27 T.AddAutoQuestPopUp = function(...) | 30 T.AddAutoQuestPopUp = function(...) |
28 return OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP | 31 return OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP |
29 end | 32 end |
30 T.RemoveAutoQuestPopUp = function(questID) | 33 T.RemoveAutoQuestPopUp = function(questID) |
34 AddQuestWatch(GetQuestLogIndexByID(questID)) | |
31 return OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP | 35 return OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP |
32 end | 36 end |
33 --- SUPER_TRACKED_QUEST_CHANGED will fires | 37 --- SUPER_TRACKED_QUEST_CHANGED will fires |
34 local tprint = B.print('Tracker') | 38 local tprint = B.print('Tracker') |
35 T.SetSuperTrackedQuestID = function(questID) | 39 T.SetSuperTrackedQuestID = function(questID) |
41 else | 45 else |
42 block.SelectionOverlay:Hide() | 46 block.SelectionOverlay:Hide() |
43 end | 47 end |
44 end | 48 end |
45 end | 49 end |
46 T.SuperTrackedQuestID = questID | |
47 end | 50 end |
51 | |
48 | 52 |
49 | 53 |
50 local previousSelection | 54 local previousSelection |
51 --@debug@ | 55 --@debug@ |
52 local tprint = B.print('Tracker') -- @debug@ | 56 local tprint = B.print('Tracker') -- @debug@ |