diff WorldPlan.lua @ 34:0100d923d8c3

WorldPlan: - Reward filter toggle changed to clear out other reward filters. The assumption being that one is most often looking only for that particular type of quest when they go to use it. - Fixed filter bar info falling out of sync after player-triggered world map updates. - Code stuff: -- Quest pin shown-state management makes better use of OnShow OnHide handlers, SetShown is toggled and it all goes from there -- WorldQuests module re-factored outside of the top level frame script. ClassPlan: - Available missions are now recorded; the mission list can be toggled between in-progress and available by clicking the heading.
author Nenue
date Wed, 02 Nov 2016 19:04:47 -0400
parents be4db60219ca
children 26dfa661daa7
line wrap: on
line diff
--- a/WorldPlan.lua	Wed Nov 02 17:25:07 2016 -0400
+++ b/WorldPlan.lua	Wed Nov 02 19:04:47 2016 -0400
@@ -66,7 +66,7 @@
   DisplayContinentPins = true,
   NotifyWhenNewQuests = true,
   EnablePins = true,
-  FadeWhileGrouped = true,
+  FadeWhileGrouped = false,
 }
 
 -- operating flags
@@ -158,6 +158,8 @@
   if self.isStale then
     self:Refresh()
   end
+
+  hooksecurefunc(self, 'SetScript', function(...) self:print('|cFFFFFF00'..self:GetName()..':SetScript()|r', ...) end)
 end
 
 function WorldPlan:OnEvent (event, ...)
@@ -177,7 +179,7 @@
     if event == 'WORLD_MAP_UPDATE' then
       self.currentMapID = GetCurrentMapAreaID()
       self.isContinentMap = (self.currentMapID == BROKEN_ISLES_ID)
-      print('|cFFFF4400currentMapID =', self.currentMapID)
+      self:print('|cFFFF4400currentMapID =', self.currentMapID)
       --self.isStale = true
     end
 
@@ -191,18 +193,19 @@
 end
 
 function WorldPlanCore:OnNext(func)
+
+
   tinsert(self.TaskQueue, func)
+  self:print('|cFF00FF00adding scheduled task #', #self.TaskQueue)
 end
 
 function WorldPlanCore:OnUpdate()
   if #self.TaskQueue >= 1 then
-  local func = tremove(self.TaskQueue, 1)
-  if func then
+    local func = tremove(self.TaskQueue, 1)
+    --self:print('|cFF00FF00running scheduled task #', #self.TaskQueue)
     func()
   end
 
-  end
-
   if self.isStale then
     print('|cFF00FF00pushing global update')
     self.isStale = nil
@@ -401,7 +404,7 @@
   info.value = "FadeWhileGrouped"
   info.tooltipTitle = "Group Fade"
   info.tooltipText = "Reduce pin alpha when grouped, so player dots are easier to see."
-  info.checked = db.DisplayContinentSummary
+  info.checked = db.FadeWhileGrouped
   info.func = DropDown_OnClick
   UIDropDownMenu_AddButton(info)
 end