Mercurial > wow > buffalo2
diff ObjectiveTracker/ObjectiveUI.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 | e837384ac363 |
children |
line wrap: on
line diff
--- a/ObjectiveTracker/ObjectiveUI.lua Mon Apr 11 09:07:40 2016 -0400 +++ b/ObjectiveTracker/ObjectiveUI.lua Wed Apr 13 11:20:09 2016 -0400 @@ -24,6 +24,7 @@ end Default.OnMouseUp = function(self, button) + print(self.handler.name, self.mainStyle, self.subStyle) if button == 'LeftButton' then if IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() then @@ -44,12 +45,13 @@ end Default.OnMouseDown = function(self, button) + print(IsModifiedClick("CHATLINK"), IsModifiedClick("QUESTWATCHTOGGLE")) print(self.info.title) end +AutoQuest.Select = function(self) -AutoQuest.Select = function(self) if self.info.popupType == 'OFFER' then ShowQuestOffer(self.info.questIndex) else @@ -59,6 +61,7 @@ end Quest.Select = function(self) + if self.info.isAutoComplete and self.info.isComplete then ShowQuestComplete(self.info.questLogIndex) else @@ -67,16 +70,22 @@ end Quest.Link = function(self) - local questLink = GetQuestLink(block.questLogIndex); + + local questLink = GetQuestLink(self.info.questLogIndex); if ( questLink ) then ChatEdit_InsertLink(questLink); end end + +AutoQuest.Link = Quest.Link + Quest.Open = function(self) + QuestMapFrame_OpenToQuestDetails(self.info.questID) end Quest.Remove = function(self) + print('removing', self.info.questLogIndex, 'from watcher') RemoveQuestWatch(self.info.questLogIndex) end @@ -88,12 +97,15 @@ --mod:Update(OBJECTIVE_TRACKER_UPDATE_MODULE_ACHIEVEMENT) end Cheevs.Remove = function(self) + RemoveTrackedAchievement(self.info.cheevID) end Cheevs.OnMouseUp = function(self, button) + Default.OnMouseUp(self, button) end Cheevs.Link = function(self) + local achievementLink = GetAchievementLink(self.info.cheevID); if ( achievementLink ) then ChatEdit_InsertLink(achievementLink); @@ -101,6 +113,7 @@ end Cheevs.Open = function(self) + if ( not AchievementFrame ) then AchievementFrame_LoadUI(); end @@ -111,8 +124,10 @@ end local Bonus = mod.Bonus -Bonus.Select = function(self, questID) - Bonus:OnTurnIn(self.info.questID, 0, 30800) +Bonus.Select = function(self) + + Bonus:OnTurnIn(self.info.questID) end -Bonus.Remove = function(self, questID) +Bonus.Remove = function(self) + end \ No newline at end of file