Mercurial > wow > buffalo2
comparison ObjectiveTracker/Quests.lua @ 29:adcd7c328d07
code collation cleaning
author | Nenue |
---|---|
date | Wed, 13 Apr 2016 21:53:24 -0400 |
parents | c33c17dd97e7 |
children | 7583684becf4 |
comparison
equal
deleted
inserted
replaced
28:c33c17dd97e7 | 29:adcd7c328d07 |
---|---|
5 local Default, Quest = T.DefaultHandler, T.Quest | 5 local Default, Quest = T.DefaultHandler, T.Quest |
6 local format = format | 6 local format = format |
7 local print = B.print('Tracker') | 7 local print = B.print('Tracker') |
8 local lprint = B.print('Line') | 8 local lprint = B.print('Line') |
9 local iprint = B.print('Info') | 9 local iprint = B.print('Info') |
10 | |
11 local colors = T.colors | 10 local colors = T.colors |
12 | |
13 local tprint = B.print('Tracker') | 11 local tprint = B.print('Tracker') |
12 | |
14 Quest.Update = function(self, reason, ...) | 13 Quest.Update = function(self, reason, ...) |
15 local print = tprint | 14 local print = tprint |
16 print('QuestTracker:Update() received') | 15 print('QuestTracker:Update() received') |
17 T.UpdateActionButtons() | 16 T.UpdateActionButtons() |
18 Default.Update(self, reason, ...) | 17 Default.Update(self, reason, ...) |
320 Quest.OnTurnIn = function(self, questID, xp, money) | 319 Quest.OnTurnIn = function(self, questID, xp, money) |
321 | 320 |
322 end | 321 end |
323 | 322 |
324 | 323 |
325 Quest.Select = function(self) | 324 Quest.Select = function (handler, block) |
326 | 325 if block.info.isAutoComplete and block.info.isComplete then |
327 if self.info.isAutoComplete and self.info.isComplete then | 326 ShowQuestComplete(block.info.questLogIndex) |
328 ShowQuestComplete(self.info.questLogIndex) | |
329 else | 327 else |
330 SetSuperTrackedQuestID(self.info.questID) | 328 SetSuperTrackedQuestID(block.info.questID) |
331 end | 329 end |
332 end | 330 end |
333 | 331 |
334 Quest.Link = function(self) | 332 Quest.Link = function(handler, block) |
335 | 333 |
336 local questLink = GetQuestLink(self.info.questLogIndex); | 334 local questLink = GetQuestLink(block.info.questLogIndex); |
337 if ( questLink ) then | 335 if ( questLink ) then |
338 ChatEdit_InsertLink(questLink); | 336 ChatEdit_InsertLink(questLink); |
339 end | 337 end |
340 end | 338 end |
341 | 339 |
342 Quest.Open = function(self) | 340 Quest.Open = function(handler, block) |
343 | 341 |
344 QuestMapFrame_OpenToQuestDetails(self.info.questID) | 342 QuestMapFrame_OpenToQuestDetails(block.info.questID) |
345 end | 343 end |
346 | 344 |
347 Quest.Remove = function(self) | 345 Quest.Remove = function(handler, block) |
348 | 346 |
349 print('removing', self.info.questLogIndex, 'from watcher') | 347 print('removing', block.info.questLogIndex, 'from watcher') |
350 RemoveQuestWatch(self.info.questLogIndex) | 348 RemoveQuestWatch(block.info.questLogIndex) |
351 end | 349 end |