diff ObjectiveUI.lua @ 16:880828018bf4

ObjectiveEvents - trim down the number of events that fire full updates - begin the general outline for determining which trackers need to refresh - handlers for accepting and completing auto-popup quests ObjectiveFrame - correct variables for money reward calculation - make sure everythign is scaling to the font strings and that the font strings aren't being pinned by SetSize ObjectiveInfo - implementation of autoquest popups - discern between internal and client bonus objective indexes - acquire the correct data set from bonus objective query ObjectiveStyle - look for a style table under the previously interpreted set before deferring standard options - horizontal/vertical options in gradient - remove height-fixing for font strings
author Nenue
date Tue, 05 Apr 2016 00:39:12 -0400
parents ed642234f017
children 605e8f0e46db
line wrap: on
line diff
--- a/ObjectiveUI.lua	Mon Apr 04 03:41:28 2016 -0400
+++ b/ObjectiveUI.lua	Tue Apr 05 00:39:12 2016 -0400
@@ -49,10 +49,24 @@
   print(self.info.title)
 end
 
-Quest.Select = function(self)
-  SetSuperTrackedQuestID(self.info.questID)
+AutoQuest.Select = function(self)
+  if self.info.popupType == 'OFFER'  then
+    ShowQuestOffer(self.info.questIndex)
+  else
+    ShowQuestComplete(self.info.questIndex)
+  end
+  RemoveAutoQuestPopUp(self.info.questID)
+end
+
+Quest.Select = function(self) -- remote quests will get listed here as well, so their turn-in data needs to be checked
+  if AutoQuest.Info[self.info.questID] then
+    AutoQuest.Select(self)
+  else
+    SetSuperTrackedQuestID(self.info.questID)
+  end
   mod.UpdateWrapper()
 end
+
 Quest.Link = function(self)
   local questLink = GetQuestLink(block.questLogIndex);
   if ( questLink ) then