diff Devian.lua @ 17:48a1d9c14af5

Commented out debug prints
author Nenue
date Sun, 20 Dec 2015 02:26:36 -0500
parents 5254d1ba6013
children 01c32c98e72a
line wrap: on
line diff
--- a/Devian.lua	Sun Dec 20 01:15:50 2015 -0500
+++ b/Devian.lua	Sun Dec 20 02:26:36 2015 -0500
@@ -50,7 +50,7 @@
   if mode == nil then
     list_state = db.enabled and STATE_LOW or STATE_HIGH
     db.enabled = (db.enabled == false) and true or false
-    print(list_state, db.enabled)
+    --print(list_state, db.enabled)
 
     if list_state == STATE_LOW then
     end
@@ -79,7 +79,7 @@
   elseif mode ~= nil then
     mode = tonumber(mode)
     if mode > 2 then
-      print('Something has happened.')
+      --print('Something has happened.')
       return
     end
     list_state = mode == STATE_LOW and STATE_LOW or STATE_HIGH
@@ -105,14 +105,14 @@
         elseif global_list[name] == 2 then
           value = true
         end
-        print('EnableAddOn(', i, ',', value,')')
+        --print('EnableAddOn(', i, ',', value,')')
         EnableAddOn(i, value)
       else
         local value = true
         if char_list[name] == 2 and global_list[name] == 1 then
           value = UnitName("player")
         end
-        print('DisableAddOn(', i, ',', value,')')
+        --print('DisableAddOn(', i, ',', value,')')
         DisableAddOn(i,value)
       end
       end
@@ -189,7 +189,7 @@
   db.minimized = self.minimized and true or nil
   db.enabled = self:IsVisible() and true or nil
   db.active = self.active and true or nil
-  print('save:', db.signature, 'min=', db.minimized, ' enabled=', db.enabled, ' active = ', db.active, 'x=', db.x, 'y=', db.y, 'h=', db.height, 'w=', db.width)
+  --print('save:', db.signature, 'min=', db.minimized, ' enabled=', db.enabled, ' active = ', db.active, 'x=', db.x, 'y=', db.y, 'h=', db.height, 'w=', db.width)
   self:SetPoint('TOPLEFT', UIParent, 'TOPLEFT', db.x, db.y)
   self:SetWidth(db.width)
 end
@@ -268,7 +268,7 @@
     vars = db.channels[i]
   end
 
-  print('make:', vars.signature, '(', vars.x, vars.y, ')', vars.width, 'x', vars.height)
+  --print('make:', vars.signature, '(', vars.x, vars.y, ')', vars.width, 'x', vars.height)
   local f = CreateFrame('Frame', 'DevianChannelFrame' .. tostring(i), UIParent, DEVIAN_FRAME)
   f:SetPoint('TOPLEFT', UIParent, 'TOPLEFT', vars.x, vars.y)
   f:SetSize(vars.width, vars.height)
@@ -367,7 +367,7 @@
 
 -- Spaces each frame evenly across the screen
 function D:DistributeFrames() --
-  print('frame grid:', max, num_side)
+  --print('frame grid:', max, num_side)
   local max = self.num_channels
   local num_side = math.ceil(math.sqrt(max))
   local w = GetScreenWidth() / num_side
@@ -376,8 +376,8 @@
     local dx = (i-1) % num_side
     local dy = math.floor((i-1) / num_side)
 
-    print('move:', frame.signature, 'dx=', dx, 'dy=', dy)
-    print('move:', frame.signature, '                                       x=', dx * w, 'y=', -(dy * h), 'h=', h, 'w=', w)
+    --print('move:', frame.signature, 'dx=', dx, 'dy=', dy)
+    --print('move:', frame.signature, '                                       x=', dx * w, 'y=', -(dy * h), 'h=', h, 'w=', w)
     frame.width = w
     frame.height = h
     frame.x = dx * w
@@ -409,7 +409,7 @@
 -- @param cinfo an array from db.channels[x] or the desired string signature
 -- @param id when set, the console at that index will be assigned all parameters in cinfo
 function D:SetChannel(cinfo, i)
-  print('join:', i , cinfo)
+  --print('join:', i , cinfo)
   local t_info = {}
   if type(cinfo) ~= 'table' then
     t_info.signature = tostring(cinfo)
@@ -419,7 +419,7 @@
   if i ~= nil then
     i = tonumber(i)
     if db.channels[i] then
-      print('pull vars from '..db.channels[i].signature)
+      --print('pull vars from '..db.channels[i].signature)
       cinfo = db.channels[i]
       srcdb = cinfo
     end
@@ -428,7 +428,7 @@
   for k,v in pairs(srcdb) do
     if not t_info[k] then
       if cinfo[k] then
-        print('- pulling', k..':',v)
+        --print('- pulling', k..':',v)
         t_info[k] = cinfo[k]
       end
     end