diff ObjectiveTracker/QuestTracker.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 66b927b46776
children
line wrap: on
line diff
--- a/ObjectiveTracker/QuestTracker.lua	Mon Apr 11 09:07:40 2016 -0400
+++ b/ObjectiveTracker/QuestTracker.lua	Wed Apr 13 11:20:09 2016 -0400
@@ -46,16 +46,17 @@
   block.statusbg:SetGradientAlpha(unpack(textbg))
 
   local completionText
-  if info.isAutoComplete then
-    local questID, popupType = GetAutoQuestPopUp(info.questLogIndex)
-    if popupType == 'COMPLETE' then
-      print('    :: auto-complete quest :: set the message')
-      info.completionText = T.strings.CLICK_TO_COMPLETE
-    end
-  end
   if info.isComplete then
-    if not completionText or info.completionText then
-      info.completionText = GetQuestLogCompletionText(info.questLogIndex)
+    if info.isAutoComplete then
+      local questID, popupType = GetAutoQuestPopUp(info.questLogIndex)
+      if popupType == 'COMPLETE' then
+        print('    :: auto-complete quest :: set the message')
+        info.completionText = T.strings.CLICK_TO_COMPLETE
+      end
+    else
+      if not completionText or info.completionText then
+        info.completionText = GetQuestLogCompletionText(info.questLogIndex)
+      end
     end
     print('    :: complete quest :: show instruction: "'.. tostring(info.completionText) .. '"')
   end
@@ -113,6 +114,7 @@
     return
   end
 
+
   local _, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, _, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isStory = GetQuestLogTitle(questIndex)
 
 
@@ -194,9 +196,6 @@
 
   q.tagID = questTagID
   q.tagName = tagName
-
-
-
   --q.isBreadCrumb = isBreadCrumb
   q.completionText= GetQuestLogCompletionText(questIndex)
   q.numObjectives = GetNumQuestLeaderBoards(questIndex)
@@ -290,6 +289,9 @@
   self.WatchInfo[watchIndex] = q
   self.LogInfo[questIndex] = q
   print('- logIndex =', questIndex, 'title =', title)
+  for k,v in pairs(q) do
+    print('|cFFFFFF00'..k..'|r:', v)
+  end
   return q
 end