Mercurial > wow > buffalo2
comparison ObjectiveEvents.lua @ 1:b0447b382f36
sorting client events from maintenance logic
implemented all that action buttons entail for quest items
author | Nenue |
---|---|
date | Wed, 30 Mar 2016 16:30:49 -0400 |
parents | |
children | a2396b03ce63 |
comparison
equal
deleted
inserted
replaced
0:3dbcad2b387d | 1:b0447b382f36 |
---|---|
1 --- ${PACKAGE_NAME} | |
2 -- @file-author@ | |
3 -- @project-revision@ @project-hash@ | |
4 -- @file-revision@ @file-hash@ | |
5 -- Created: 3/30/2016 1:23 AM | |
6 local B = select(2,...).frame | |
7 local mod = B:RegisterModule("ObjectiveTracker", _G.VeneerObjectiveWrapper, 'BuffFrame') | |
8 local print = B.print('ObjectiveEvent') | |
9 | |
10 -------------------------------------------------------------------- | |
11 --- Specialized event handlers | |
12 -------------------------------------------------------------------- | |
13 print(mod:GetName()) | |
14 mod.OnQuestAccepted = function(_, questLogIndex, questID) | |
15 AddQuestWatch(questLogIndex) | |
16 SetSuperTrackedQuestID(questID) | |
17 end | |
18 | |
19 mod.OnQuestComplete = function(_, questLogIndex, questID) | |
20 QuestPOIUpdateIcons() | |
21 end | |
22 | |
23 mod.OnQuestFinished = function(_, questLogIndex, questID) | |
24 mod.TrackClosest() | |
25 RemoveQuestWatch(questLogIndex) | |
26 end | |
27 | |
28 mod.OnQuestFromLocation = function(event) end | |
29 | |
30 mod.OnAddQuestWatch = function(questID) | |
31 mod.UpdateActionButtons() | |
32 end |