Mercurial > wow > buffalo2
diff ObjectiveTracker/Quests.lua @ 35:69d03f8e293e
- separated layout and data logic between Frame.lua and Update.lua
- solved disappearing tracker mystery
author | Nenue |
---|---|
date | Sun, 17 Apr 2016 11:07:48 -0400 |
parents | 9856ebc63fa4 |
children | e84d645c8ab8 |
line wrap: on
line diff
--- a/ObjectiveTracker/Quests.lua Sun Apr 17 00:21:45 2016 -0400 +++ b/ObjectiveTracker/Quests.lua Sun Apr 17 11:07:48 2016 -0400 @@ -105,7 +105,7 @@ return end - tprint(' |cFFFFBB00GetInfo:|r', watchIndex, '|cFFFF2299'..title..'|r') + tprint(' |cFFFFBB00GetInfo:|r', watchIndex, '|cFFFF2299'..title..'|r') local _, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, _, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isStory = GetQuestLogTitle(questLogIndex) Quest.Info[questID] = Quest.Info[questID] or {} @@ -406,10 +406,8 @@ end Quest.OnTurnIn = function(self, questID, xp, money) - end - Quest.Select = function (handler, block) if block.info.isAutoComplete and block.info.isComplete then ShowQuestComplete(block.info.logIndex) @@ -419,7 +417,6 @@ end Quest.Link = function(handler, block) - local questLink = GetQuestLink(block.info.logIndex); if ( questLink ) then ChatEdit_InsertLink(questLink); @@ -427,12 +424,10 @@ end Quest.Open = function(handler, block) - QuestMapFrame_OpenToQuestDetails(block.info.questID) end Quest.Remove = function(handler, block) - print('removing', block.info.logIndex, 'from watcher') RemoveQuestWatch(block.info.logIndex) end