comparison 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
comparison
equal deleted inserted replaced
24:66b927b46776 25:4b3da1b221de
190 end 190 end
191 local Tracker_call = function (self, reason) 191 local Tracker_call = function (self, reason)
192 self:Update(reason) 192 self:Update(reason)
193 end 193 end
194 local Handler_Initialize = function (self, name, index) 194 local Handler_Initialize = function (self, name, index)
195 local c = T.Conf.Wrapper
195 print('Initializing |cFF00FFFF'..name..'|r module...') 196 print('Initializing |cFF00FFFF'..name..'|r module...')
196 197
197 local handler = setmetatable(T[name] or {}, { 198 local handler = setmetatable(T[name] or {}, {
198 __tostring = Tracker_string, 199 __tostring = Tracker_string,
199 __call = Tracker_call 200 __call = Tracker_call
230 231
231 local trackerName = 'Veneer'..name..'Tracker' 232 local trackerName = 'Veneer'..name..'Tracker'
232 local handler = T[name] 233 local handler = T[name]
233 local frame = CreateFrame('Frame', trackerName, _G.VeneerObjectiveScroll, 'VeneerTrackerTemplate') 234 local frame = CreateFrame('Frame', trackerName, _G.VeneerObjectiveScroll, 'VeneerTrackerTemplate')
234 frame.title:SetText(handler.displayName) 235 frame.title:SetText(handler.displayName)
235 T.SetBlockStyle(frame, 'Tracker', 'Normal') 236 frame:SetWidth(c.Width)
236 handler.frame = frame 237 handler.frame = frame
237 handler.trackerName = trackerName 238 handler.trackerName = trackerName
238 handler.lines = {} 239 handler.lines = {}
239 T.orderedTrackers[index] = frame 240 T.orderedTrackers[index] = frame
240 T.namedTrackers[name] = frame 241 T.namedTrackers[name] = frame
372 T.watchMoneyReasons = T.watchMoneyReasons - reason; 373 T.watchMoneyReasons = T.watchMoneyReasons - reason;
373 end 374 end
374 end 375 end
375 end 376 end
376 T.animateReasons = 0 377 T.animateReasons = 0
377 T.SetAnimate = function(animate, reason) 378 T.SetAnimate = function(reason)
379 print('comparing', T.animateReasons, reason)
378 if animate then 380 if animate then
379 if band(T.animateReasons, reason) == 0 then 381 if band(T.animateReasons, reason) == 0 then
380 T.animateReasons = T.animateReasons + reason 382 T.animateReasons = T.animateReasons + reason
381 end 383 end
382 else 384 else