changeset 23:2c2a84163606

Texture and visibility settings applied during frame creation Frames are hidden and Message() bounces out when full addons are loaded
author Nenue
date Wed, 23 Dec 2015 08:28:12 -0500
parents 45e1e612df44
children 4085930d5f09
files Devian.lua
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Devian.lua	Wed Dec 23 08:19:11 2015 -0500
+++ b/Devian.lua	Wed Dec 23 08:28:12 2015 -0500
@@ -328,6 +328,10 @@
 -- @param Tag, signature, or numeric index of the channel to output on. Defaults to primary channel.
 -- @param ... Output contents.
 local function Message(prefix, ...)
+  if db.enabled then
+    return D.oldprint(prefix, ...)
+  end
+
   if prefix == nil then
     prefix = 1
   end
@@ -586,6 +590,13 @@
     self.console[db.current_channel]:ToFront()
   end
 
+  if db.enabled then
+    for i, c in pairs(self.console)
+      self.console[i]:Hide()
+    end
+  end
+
+
   -- only do this in dev mode
   if db.enabled == false then
     setprinthandler(Message)