diff ObjectiveTracker/BonusObjectives.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 a487841050be
children 1f8f9cc3d956
line wrap: on
line diff
--- a/ObjectiveTracker/BonusObjectives.lua	Sun Apr 17 13:00:31 2016 -0400
+++ b/ObjectiveTracker/BonusObjectives.lua	Mon Apr 18 07:56:23 2016 -0400
@@ -86,6 +86,7 @@
 Bonus.QuestBlock = {}
 Bonus.WatchInfo = {}
 function Bonus:GetNumWatched ()
+  if true then return 0, 0, nil end
   local print = iprint
   print(self.name, self)
 
@@ -257,6 +258,7 @@
     attachment.maxValue = 100
     attachment:SetPoint('TOP', line, 'TOP', 0, 0)
     attachment.status:SetFormattedText(PERCENTAGE_STRING, percent)
+    attachment:SetParent(handler.frame)
     print(attachment.status:GetText())
     print('    |cFFFF0022** text:|r', data.text, '|cFFFF0022value:|r', data.value, '|cFFFF0022max:|r', data.maxValue)
   end