comparison Devian.lua @ 20:df098747b31d v1.4.1

Current channel works again
author Nenue
date Tue, 22 Dec 2015 02:31:05 -0500
parents 01c32c98e72a
children 45e1e612df44
comparison
equal deleted inserted replaced
19:a04ea897862d 20:df098747b31d
240 D.raise_ct = D.raise_ct + 1 240 D.raise_ct = D.raise_ct + 1
241 c:Raise() 241 c:Raise()
242 c.out.backdrop:SetTexture(unpack(db.frontdrop)) 242 c.out.backdrop:SetTexture(unpack(db.frontdrop))
243 c.out.backdrop:SetGradientAlpha(unpack(db.frontgrad)) 243 c.out.backdrop:SetGradientAlpha(unpack(db.frontgrad))
244 c.out.backdrop:SetBlendMode(db.frontblend) 244 c.out.backdrop:SetBlendMode(db.frontblend)
245 D.current_channel = c.index 245 db.current_channel = c.index
246 246
247 for _, part in pairs(c.border) do 247 for _, part in pairs(c.border) do
248 part:SetTexture(1,0,0,1) 248 part:SetTexture(1,0,0,1)
249 end 249 end
250 250
367 local buffer = {'|cFF'.. pcolor..prefix ..'|r'} 367 local buffer = {'|cFF'.. pcolor..prefix ..'|r'}
368 for i = 1, select('#',...) do 368 for i = 1, select('#',...) do
369 local var = select(i, ...) 369 local var = select(i, ...)
370 370
371 if type(var) == 'table' then 371 if type(var) == 'table' then
372 var = '<table>' 372 if type(var.GetName) == 'function' then
373 var = '<table:'..(var:GetName() or '?')..'>'
374 else
375 var = '<table>'
376 end
377
373 elseif type(var) == 'boolean' then 378 elseif type(var) == 'boolean' then
374 var = var and 'true' or 'false' 379 var = var and 'true' or 'false'
375 elseif type(var) == 'function' then 380 elseif type(var) == 'function' then
376 var = '<funcref>' 381 var = '<funcref>'
377 elseif type(var) == 'nil' then 382 elseif type(var) == 'nil' then
482 487
483 if not self.console[i] then 488 if not self.console[i] then
484 self.console[i] = CreateConsole(i, t_info) 489 self.console[i] = CreateConsole(i, t_info)
485 end 490 end
486 local channel = self.console[i] 491 local channel = self.console[i]
487
488 self.sig[t_info.signature] = channel 492 self.sig[t_info.signature] = channel
489 self.sigID[t_info.signature] = i 493 self.sigID[t_info.signature] = i
490 self.IDsig[i] = t_info.signature 494 self.IDsig[i] = t_info.signature
495 if i == db.current_channel then
496 channel:ToFront()
497 end
498
491 return channel 499 return channel
492 end 500 end
493 501
494 function D:OnEnable() 502 function D:OnEnable()
495 -- commands 503 -- commands