diff ObjectiveTracker/Events.lua @ 39:92534dc793f2

- restore the previous QuestLogSelection after pulling for selection-restricted quest data; fixes icon mixups while quest map is open - moved progressbar builders into the schema environment, with all the other Frame.lua functions; prep for configuration access - relegate the various removal events to a framescript in their corresponding blocks; this takes care of resolving dead frames
author Nenue
date Thu, 21 Apr 2016 16:43:37 -0400
parents 1f8f9cc3d956
children 03ed70f846de
line wrap: on
line diff
--- a/ObjectiveTracker/Events.lua	Thu Apr 21 11:36:41 2016 -0400
+++ b/ObjectiveTracker/Events.lua	Thu Apr 21 16:43:37 2016 -0400
@@ -31,13 +31,11 @@
 end
 
 T.AddTrackedAchievement = function(cheevID)
-  T.CleanWidgets()
   --return OBJECTIVE_TRACKER_UPDATE_MODULE_ACHIEVEMENT
 end
 
 
 T.RemoveTrackedAchievement = function(cheevID)
-  T.CleanWidgets()
   --return OBJECTIVE_TRACKER_UPDATE_MODULE_ACHIEVEMENT
 end
 
@@ -66,4 +64,13 @@
 
 T.SetSuperTrackedQuestID = function(questID)
   --T:Update()
+end
+
+local previousSelection
+local tprint = B.print('Tracker')
+T.SelectQuestLogEntry = function(logIndex)
+  if previousSelection and previousSelection ~= logIndex then
+    tprint('swapping selection from', previousSelection, 'to', logIndex)
+  end
+  previousSelection = logIndex
 end
\ No newline at end of file