Nenue@28: --- ${PACKAGE_NAME} Nenue@28: -- @file-author@ Nenue@28: -- @project-revision@ @project-hash@ Nenue@28: -- @file-revision@ @file-hash@ Nenue@28: -- Created: 4/13/2016 7:49 PM Nenue@28: local B = select(2,...).frame Nenue@28: local T = B:RegisterModule("ObjectiveTracker", _G.VeneerObjectiveWrapper, 'BuffFrame') Nenue@28: local _G, ipairs, max, min, unpack, floor, pairs, tostring, type, band = _G, ipairs, max, min, unpack, floor, pairs, tostring, type, bit.band Nenue@28: local ShowQuestOffer, ShowQuestComplete, RemoveAutoQuestPopUp = ShowQuestOffer, ShowQuestComplete, RemoveAutoQuestPopUp Nenue@28: local lprint = B.print('Line') Nenue@28: local AutoQuest = T.AutoQuest Nenue@28: Nenue@28: --- They are not exactly quests, but the aliases used to signal that a quest was pushed into your log by the environment. Nenue@28: -- Once accepted they never appear again unless the quest is dropped (daily reset/abandon quest) Nenue@28: local CLICK_TO_COMPLETE = 'Click to Complete' Nenue@28: local CLICK_TO_ACCEPT = 'Click to Accept' Nenue@28: AutoQuest.UpdateObjectives = function(handler, block) Nenue@28: local print = lprint Nenue@28: if block.info.type == 'OFFER' then Nenue@28: block.status:SetText(CLICK_TO_ACCEPT) Nenue@28: end Nenue@28: end Nenue@28: Nenue@28: AutoQuest.Select = function(self) Nenue@28: Nenue@28: if self.info.popupType == 'OFFER' then Nenue@28: ShowQuestOffer(self.info.questIndex) Nenue@28: else Nenue@28: ShowQuestComplete(self.info.questIndex) Nenue@28: end Nenue@28: RemoveAutoQuestPopUp(self.info.questID) Nenue@28: end Nenue@28: Nenue@28: AutoQuest.Link = T.Quest.Link