# HG changeset patch # User Nenue # Date 1450877292 18000 # Node ID 2c2a84163606b13230127cec8c66176b5e24eee3 # Parent 45e1e612df44c0a425ed404994cf9b65efb0da5b Texture and visibility settings applied during frame creation Frames are hidden and Message() bounces out when full addons are loaded diff -r 45e1e612df44 -r 2c2a84163606 Devian.lua --- 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)