Mercurial > wow > buffalo2
diff 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 |
line wrap: on
line diff
--- a/ObjectiveUI.lua Fri Apr 01 14:54:01 2016 -0400 +++ b/ObjectiveUI.lua Sat Apr 02 03:19:25 2016 -0400 @@ -40,7 +40,7 @@ end Tracker.OnMouseDown = function(self, button) - self:SetStyle('Active') + self:SetStyle('TrackeBlock','MouseDown') print(IsModifiedClick("CHATLINK"), IsModifiedClick("QUESTWATCHTOGGLE")) print(self.info.title) end @@ -82,7 +82,7 @@ end Cheevs.OnMouseUp = function(self, button) Tracker.OnMouseUp(self, button) - self:SetStyle('CheevNormal') + self:SetStyle('TrackerBlock', 'Cheev', 'CheevNormal') end Cheevs.Link = function(self) local achievementLink = GetAchievementLink(self.info.cheevID);