comparison ObjectiveTracker/Widgets.lua @ 37:e84d645c8ab8

- revised the tracker update function to build its complete data list up front and use the values as points of comparison for determining possible out of place blocks, which will be iterated over afterward to remove what wasn't re-used - also entailed revising the exact role of global event handlers and function hooks, limiting their directions of communication so one doesn't end up calling the other multiple or inifinity times - schema handling polish
author Nenue
date Mon, 18 Apr 2016 07:56:23 -0400
parents 69d03f8e293e
children 1f8f9cc3d956
comparison
equal deleted inserted replaced
36:a487841050be 37:e84d645c8ab8
390 390
391 T.defaults.WidgetStyle = { 391 T.defaults.WidgetStyle = {
392 392
393 } 393 }
394 394
395 local progressHeight = 8 395 local progressHeight = 17
396 local progressBorder = 1 396 local progressBorder = 1
397 local progressFont = _G.VeneerCriteriaFontNormal 397 local progressFont = _G.VeneerCriteriaFontNormal
398 398
399 local lprint = B.print('Line') 399 local lprint = B.print('Line')
400 T.InitializeWidget.ProgressBar = function(self) 400 T.InitializeWidget.ProgressBar = function(self)
410 self.bg:SetWidth(self.width) 410 self.bg:SetWidth(self.width)
411 self.fg:ClearAllPoints() 411 self.fg:ClearAllPoints()
412 self.fg:SetPoint('BOTTOMLEFT', self, 'BOTTOMLEFT', progressBorder, progressBorder) 412 self.fg:SetPoint('BOTTOMLEFT', self, 'BOTTOMLEFT', progressBorder, progressBorder)
413 self.fg:SetHeight(progressHeight - progressBorder * 2) 413 self.fg:SetHeight(progressHeight - progressBorder * 2)
414 414
415 self.status:SetFontObject(progressFont) 415 --self.status:SetFontObject(progressFont)
416 self.status:SetText(self.objective.quantityString) 416 self.status:SetText(self.objective.quantityString)
417 end 417 end
418 418
419 T.UpdateWidget.ProgressBar = function (self) 419 T.UpdateWidget.ProgressBar = function (self)
420 local quantity, requiredQuantity = self.value, self.maxValue 420 local quantity, requiredQuantity = self.value, self.maxValue