diff Turok/Layout/Layout.lua @ 9:9400a0ff8540

Ugh Timer: - container update directionality - talent update iterates over a non-volatile table to carry out updates - index management steps organized - talentRow status implemented, returns the spell associated with the talent chosen from that row CombatLog: - sort out font controls and unbork arguments
author Nenue
date Sun, 21 Feb 2016 13:08:30 -0500
parents a9b8b0866ece
children
line wrap: on
line diff
--- a/Turok/Layout/Layout.lua	Sun Feb 21 08:49:34 2016 -0500
+++ b/Turok/Layout/Layout.lua	Sun Feb 21 13:08:30 2016 -0500
@@ -66,7 +66,7 @@
 scriptargs.LibFog = F
 local print = function(...)
   if _G.Devian and _G.DevianDB.workspace ~= 1 then
-    _G.print('Layout', ...)
+    --_G.print('Layout', ...)
   end
 end
 --- debug highlighters
@@ -182,15 +182,15 @@
   print('  fade on combat =', self.combatFade)
   for _, type in ipairs({'alpha', 'alpha_ooc'}) do
     self[type] = c[type]
-    _G.print('DB', self:GetName(), type, self[type])
+    --_G.print('DB', self:GetName(), type, self[type])
     for _, subtype in ipairs({'_passive', '_active'}) do
       self[type..subtype] = c[type..subtype] or self[type]
-      _G.print('DB', self:GetName(), type..subtype, self[type..subtype])
+      --_G.print('DB', self:GetName(), type..subtype, self[type..subtype])
       for _, subsubtype in ipairs({'_empty', '_half', '_full'}) do
         self[type..subtype..subsubtype] = c[type..subtype..subsubtype] or self[type..subtype]
-        _G.print('DB', self:GetName(), type..subtype..subsubtype, self[type..subtype..subsubtype])
+        --_G.print('DB', self:GetName(), type..subtype..subsubtype, self[type..subtype..subsubtype])
         self[type..subsubtype] = c[type..subsubtype] or self[type..subtype]
-        _G.print('DB', self:GetName(), type..subsubtype, self[type..subsubtype])
+        --_G.print('DB', self:GetName(), type..subsubtype, self[type..subsubtype])
       end
     end
   end
@@ -372,7 +372,7 @@
   if self.fill_inverse then
     ratio = 1 - ratio
   end
-  _G.print('Update', 'dx', self.fill_x)
+  ----_G.print('Update', 'dx', self.fill_x)
   local x =
       scale * ratio * directionCoord[self.fill_direction][1]
   return min(x, scale) + self.fill_x
@@ -391,16 +391,17 @@
     ratio = 1 - ratio
   end
 
-  _G.print('Update', 'dy', self.fill_y)
+  --_G.print('Update', 'dy', self.fill_y)
   -- (height of bar offset by the size of any overlapping element) * progress ratio, offset by the size of any overlapping embed + inset
   local y =
       scale * ratio * directionCoord[self.fill_direction][2] - self.foreground_inset
   return min(y, scale) + self.fill_y
 end
 local SetProgress = function(self, progress, scaleX, scaleY)
-  _G.print('Update', cText(self:GetName()),
+  --[[_G.print('Update', cText(self:GetName()),
     "\n     d:", progress, 'dX:', directionCoord[self.fill_direction][1], 'dY:', directionCoord[self.fill_direction][2], 'dI:', self.fill_inverse,
     "\n  peak:", self.fill_anchor, self.fill_anchorTo, TranslateX(self, progress), TranslateY(self,progress))
+    --]]
 
   self.foreground:SetPoint(self.fill_anchor, self.background, self.fill_anchorTo, TranslateX(self, progress, scaleX), TranslateY(self, progress, scaleY))
 end