comparison Devian.lua @ 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
comparison
equal deleted inserted replaced
22:45e1e612df44 23:2c2a84163606
326 -- The first argument describes the channel to output on, and the remaining arguments are concatenated in a manner similar to default print() 326 -- The first argument describes the channel to output on, and the remaining arguments are concatenated in a manner similar to default print()
327 -- This becomes the print handler when development mode is active. The original print() function is assigned to oldprint(). 327 -- This becomes the print handler when development mode is active. The original print() function is assigned to oldprint().
328 -- @param Tag, signature, or numeric index of the channel to output on. Defaults to primary channel. 328 -- @param Tag, signature, or numeric index of the channel to output on. Defaults to primary channel.
329 -- @param ... Output contents. 329 -- @param ... Output contents.
330 local function Message(prefix, ...) 330 local function Message(prefix, ...)
331 if db.enabled then
332 return D.oldprint(prefix, ...)
333 end
334
331 if prefix == nil then 335 if prefix == nil then
332 prefix = 1 336 prefix = 1
333 end 337 end
334 338
335 local sendq = {} 339 local sendq = {}
584 588
585 if self.console[db.current_channel] then 589 if self.console[db.current_channel] then
586 self.console[db.current_channel]:ToFront() 590 self.console[db.current_channel]:ToFront()
587 end 591 end
588 592
593 if db.enabled then
594 for i, c in pairs(self.console)
595 self.console[i]:Hide()
596 end
597 end
598
599
589 -- only do this in dev mode 600 -- only do this in dev mode
590 if db.enabled == false then 601 if db.enabled == false then
591 setprinthandler(Message) 602 setprinthandler(Message)
592 print = function(...) 603 print = function(...)
593 _G.print('Dvn', ...) 604 _G.print('Dvn', ...)