diff ObjectiveTracker/ObjectiveTracker.lua @ 33:64f2a9bbea79

- implementing structural revisions in bonus objectives - prevent instances of nil arithmetic - decide on where to keep style values - start widgets with dummy values for operability
author Nenue
date Fri, 15 Apr 2016 17:01:06 -0400
parents a3afe6c3771e
children 9856ebc63fa4
line wrap: on
line diff
--- a/ObjectiveTracker/ObjectiveTracker.lua	Fri Apr 15 07:01:40 2016 -0400
+++ b/ObjectiveTracker/ObjectiveTracker.lua	Fri Apr 15 17:01:06 2016 -0400
@@ -127,7 +127,9 @@
   Width = WRAPPER_WIDTH,
   HeaderHeight = WRAPPER_HEADER_HEIGHT,
   TextSpacing = 3,
+  TextIndent = 4,
   TitleSpacing = 3,
+  TitleIndent = 4,
 }
 
 
@@ -304,7 +306,6 @@
   return OBJECTIVE_TRACKER_UPDATE_QUEST
 end
 Event.ZONE_CHANGED = function()
-
   local inMicroDungeon = IsPlayerInMicroDungeon();
   if ( inMicroDungeon ~= T.inMicroDungeon ) then
     if ( not WorldMapFrame:IsShown() and GetCVarBool("questPOI") ) then
@@ -313,6 +314,7 @@
     --SortQuestWatches();
     T.inMicroDungeon = inMicroDungeon;
   end
+  return OBJECTIVE_TRACKER_UPDATE_MODULE_BONUS_OBJECTIVE + OBJECTIVE_TRACKER_UPDATE_MODULE_SCENARIO
 end
 Event.QUEST_AUTOCOMPLETE = function(questId)
   AddAutoQuestPopUp(questId, "COMPLETE");
@@ -534,7 +536,7 @@
 
   ObjectiveTrackerFrame:UnregisterAllEvents()
   ObjectiveTrackerFrame:Hide()
-
+  _G.MinimapCluster:Hide()
 
   for id, name in ipairs(T.orderedNames) do
     if not T.orderedHandlers[id] then