# HG changeset patch # User Nenue # Date 1450769465 18000 # Node ID df098747b31d14cf74851a3723ec8a1005eedac7 # Parent a04ea897862d1432c71acf7595cd0c2c6536528d Current channel works again diff -r a04ea897862d -r df098747b31d Devian.lua --- a/Devian.lua Sun Dec 20 18:28:09 2015 -0500 +++ b/Devian.lua Tue Dec 22 02:31:05 2015 -0500 @@ -242,7 +242,7 @@ c.out.backdrop:SetTexture(unpack(db.frontdrop)) c.out.backdrop:SetGradientAlpha(unpack(db.frontgrad)) c.out.backdrop:SetBlendMode(db.frontblend) - D.current_channel = c.index + db.current_channel = c.index for _, part in pairs(c.border) do part:SetTexture(1,0,0,1) @@ -369,7 +369,12 @@ local var = select(i, ...) if type(var) == 'table' then - var = '' + if type(var.GetName) == 'function' then + var = '' + else + var = '
' + end + elseif type(var) == 'boolean' then var = var and 'true' or 'false' elseif type(var) == 'function' then @@ -484,10 +489,13 @@ self.console[i] = CreateConsole(i, t_info) end local channel = self.console[i] - self.sig[t_info.signature] = channel self.sigID[t_info.signature] = i self.IDsig[i] = t_info.signature + if i == db.current_channel then + channel:ToFront() + end + return channel end