comparison ObjectiveTracker/AutoQuestPopups.lua @ 37:e84d645c8ab8

- revised the tracker update function to build its complete data list up front and use the values as points of comparison for determining possible out of place blocks, which will be iterated over afterward to remove what wasn't re-used - also entailed revising the exact role of global event handlers and function hooks, limiting their directions of communication so one doesn't end up calling the other multiple or inifinity times - schema handling polish
author Nenue
date Mon, 18 Apr 2016 07:56:23 -0400
parents 9856ebc63fa4
children
comparison
equal deleted inserted replaced
36:a487841050be 37:e84d645c8ab8
10 local AutoQuest, Quest = T.AutoQuest, T.Quest 10 local AutoQuest, Quest = T.AutoQuest, T.Quest
11 local ShowQuestOffer, ShowQuestComplete, RemoveAutoQuestPopUp = ShowQuestOffer, ShowQuestComplete, RemoveAutoQuestPopUp 11 local ShowQuestOffer, ShowQuestComplete, RemoveAutoQuestPopUp = ShowQuestOffer, ShowQuestComplete, RemoveAutoQuestPopUp
12 local GetNumAutoQuestPopUps, GetAutoQuestPopUp, GetQuestLogIndexByID, GetQuestLogTitle = GetNumAutoQuestPopUps, GetAutoQuestPopUp, GetQuestLogIndexByID, GetQuestLogTitle 12 local GetNumAutoQuestPopUps, GetAutoQuestPopUp, GetQuestLogIndexByID, GetQuestLogTitle = GetNumAutoQuestPopUps, GetAutoQuestPopUp, GetQuestLogIndexByID, GetQuestLogTitle
13 --- Data retrieval 13 --- Data retrieval
14 function AutoQuest:GetNumWatched () 14 function AutoQuest:GetNumWatched ()
15 if true then return 0, 0, nil end
15 print(self.name, self) 16 print(self.name, self)
16 --Quest:GetNumWatched() 17 --Quest:GetNumWatched()
17 self.numWatched = GetNumAutoQuestPopUps() 18 self.numWatched = GetNumAutoQuestPopUps()
18 19
19 return self.numWatched 20 return self.numWatched