comparison ObjectiveUI.lua @ 0:3dbcad2b387d

initial push
author Nenue
date Wed, 30 Mar 2016 02:24:56 -0400
parents
children b0447b382f36
comparison
equal deleted inserted replaced
-1:000000000000 0:3dbcad2b387d
1 --- ${PACKAGE_NAME}
2 -- @file-author@
3 -- @project-revision@ @project-hash@
4 -- @file-revision@ @file-hash@
5 -- Created: 3/29/2016 7:07 PM
6 local B = select(2,...).frame
7 local mod = B:RegisterModule("ObjectiveTracker", _G.VeneerObjectiveWrapper, 'BuffFrame')
8 local print = B.print('Objectives')
9 local Tracker, AutoQuest, Quest, Cheevs = mod.Tracker, mod.AutoQuest, mod.Quest, mod.Cheevs
10
11 --------------------------------------------------------------------
12 --- Tracker-specific widget functions
13 --------------------------------------------------------------------
14
15 Tracker.Select = function(self) end
16 Tracker.Open = function(self) end
17 Tracker.Remove = function(self) end
18 Tracker.Report = function(self)
19 print('Stats:', self.numWatched,'items tracked,', self.numBlocks,'blocks assigned.')
20 end
21
22 Tracker.OnMouseUp = function(self, button)
23 if button == 'LeftButton' then
24 self:Select()
25 mod.UpdateWrapper()
26 elseif button == 'RightButton' then
27 self:Open()
28 end
29 print('|cFFFF8800'..tostring(self:GetName())..':MouseUp()|r ->',self.info.trackingID)
30 end
31
32 Tracker.OnMouseDown = function(self, button)
33 if button == 'LeftButton' then
34 self:SetStyle('Active')
35 end
36 print(self.info.title)
37 end
38
39 -----------------------------
40 --- AUTO_QUEST
41 AutoQuest.name = "Remote Quests"
42 AutoQuest.GetNumWatched = GetNumAutoQuestPopUps
43
44 -----------------------------
45 --- QUEST
46 Quest.name = "Quests"
47 Quest.Select = function(self)
48 SetSuperTrackedQuestID(self.info.questID)
49 end
50 Quest.Open = function(self)
51 print('something something quest log')
52 QuestMapFrame_ShowQuestDetails(self.info.questID)
53 ToggleQuestLog()
54 end
55
56
57 -----------------------------
58 --- CHEEVS
59 Cheevs.Select = function(self)
60 end
61
62 Cheevs.Open = function(self)
63 end
64