Mercurial > wow > buffalo2
diff ObjectiveTracker/ObjectiveCore.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 | 66b927b46776 |
children |
line wrap: on
line diff
--- a/ObjectiveTracker/ObjectiveCore.lua Mon Apr 11 09:07:40 2016 -0400 +++ b/ObjectiveTracker/ObjectiveCore.lua Wed Apr 13 11:20:09 2016 -0400 @@ -192,6 +192,7 @@ self:Update(reason) end local Handler_Initialize = function (self, name, index) + local c = T.Conf.Wrapper print('Initializing |cFF00FFFF'..name..'|r module...') local handler = setmetatable(T[name] or {}, { @@ -232,7 +233,7 @@ local handler = T[name] local frame = CreateFrame('Frame', trackerName, _G.VeneerObjectiveScroll, 'VeneerTrackerTemplate') frame.title:SetText(handler.displayName) - T.SetBlockStyle(frame, 'Tracker', 'Normal') + frame:SetWidth(c.Width) handler.frame = frame handler.trackerName = trackerName handler.lines = {} @@ -374,7 +375,8 @@ end end T.animateReasons = 0 -T.SetAnimate = function(animate, reason) +T.SetAnimate = function(reason) + print('comparing', T.animateReasons, reason) if animate then if band(T.animateReasons, reason) == 0 then T.animateReasons = T.animateReasons + reason