Mercurial > wow > buffalo2
comparison ObjectiveUI.lua @ 10:f03c75f63566
ObjectiveStyle & ObjectiveFrame
- abstract aesthetic details away from ObjectiveFrame
- revise SetBlockStyle into a more general algorithm for every frame
- implement caching of resolved attribute combinations
- use loadstring functions to store resolved attributes and call upon those when, for example, a MouseUp leads a tracker block to restore its original style
| author | Nenue |
|---|---|
| date | Sat, 02 Apr 2016 03:19:25 -0400 |
| parents | 2698173edd40 |
| children | 8238cddaddb1 |
comparison
equal
deleted
inserted
replaced
| 9:2698173edd40 | 10:f03c75f63566 |
|---|---|
| 38 self.modQuestWatch = nil | 38 self.modQuestWatch = nil |
| 39 print('|cFFFF8800'..tostring(self:GetName())..':MouseUp()|r') | 39 print('|cFFFF8800'..tostring(self:GetName())..':MouseUp()|r') |
| 40 end | 40 end |
| 41 | 41 |
| 42 Tracker.OnMouseDown = function(self, button) | 42 Tracker.OnMouseDown = function(self, button) |
| 43 self:SetStyle('Active') | 43 self:SetStyle('TrackeBlock','MouseDown') |
| 44 print(IsModifiedClick("CHATLINK"), IsModifiedClick("QUESTWATCHTOGGLE")) | 44 print(IsModifiedClick("CHATLINK"), IsModifiedClick("QUESTWATCHTOGGLE")) |
| 45 print(self.info.title) | 45 print(self.info.title) |
| 46 end | 46 end |
| 47 | 47 |
| 48 ----------------------------- | 48 ----------------------------- |
| 80 Cheevs.Remove = function(self) | 80 Cheevs.Remove = function(self) |
| 81 RemoveTrackedAchievement(self.info.cheevID) | 81 RemoveTrackedAchievement(self.info.cheevID) |
| 82 end | 82 end |
| 83 Cheevs.OnMouseUp = function(self, button) | 83 Cheevs.OnMouseUp = function(self, button) |
| 84 Tracker.OnMouseUp(self, button) | 84 Tracker.OnMouseUp(self, button) |
| 85 self:SetStyle('CheevNormal') | 85 self:SetStyle('TrackerBlock', 'Cheev', 'CheevNormal') |
| 86 end | 86 end |
| 87 Cheevs.Link = function(self) | 87 Cheevs.Link = function(self) |
| 88 local achievementLink = GetAchievementLink(self.info.cheevID); | 88 local achievementLink = GetAchievementLink(self.info.cheevID); |
| 89 if ( achievementLink ) then | 89 if ( achievementLink ) then |
| 90 ChatEdit_InsertLink(achievementLink); | 90 ChatEdit_InsertLink(achievementLink); |
