diff ObjectiveTracker/ObjectiveInfo.lua @ 25:4b3da1b221de v1.0-beta

- distinction between all possible types of values for the 'isComplete' field - style polish applied to title headers - clickable regions altered to somewhat match those of the blizzard objectives tracker, for more world frame space and quicker user familiarity
author Nenue
date Wed, 13 Apr 2016 11:20:09 -0400
parents e837384ac363
children
line wrap: on
line diff
--- a/ObjectiveTracker/ObjectiveInfo.lua	Mon Apr 11 09:07:40 2016 -0400
+++ b/ObjectiveTracker/ObjectiveInfo.lua	Wed Apr 13 11:20:09 2016 -0400
@@ -89,7 +89,7 @@
 
   local questID, type = GetAutoQuestPopUp(popupIndex)
   local questLogIndex = GetQuestLogIndexByID(questID)
-  local title, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, questID, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isStory = GetQuestLogTitle(questIndex)
+  local title, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, questID, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isStory = GetQuestLogTitle(questLogIndex)
 
   self.Info[questID] = self.Info[questID] or {}
   local popup = self.Info[questID]
@@ -265,12 +265,29 @@
 
 --- info cleanup done when  turn-ins are detected
 Bonus.OnTurnIn = function(self, questID, xp, money)
+
+  if #self.info.rewardInfo >= 1 then
+    for i, reward in ipairs(self.info.rewardInfo) do
+      --[[
+        type = 'item',
+        index = i ,
+        name = name,
+        texture = texture,
+        count = count,
+        quality = quality,
+        isUsable = isUsable
+       ]]
+      print(' reward ', i, ' ', reward.type, reward.name, reward.count)
+
+    end
+  end
+
   print('|cFFFF8800'..self.name..':OnTurnIn call', questID, xp, money)
   local savedTasks = B.Conf.TasksLog
 
   self.Info[questID].completedTime = GetTime()
   self.Info[questID].animate = true
-  T.SetAnimate(self.watchReason)
+  T.SetAnimate(self.watchReasonModule)
   savedTasks[questID] = self.Info[questID]
 end