Mercurial > wow > devian
changeset 20:df098747b31d v1.4.1
Current channel works again
author | Nenue |
---|---|
date | Tue, 22 Dec 2015 02:31:05 -0500 |
parents | a04ea897862d |
children | 4ce99f995339 |
files | Devian.lua |
diffstat | 1 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 = '<table>' + if type(var.GetName) == 'function' then + var = '<table:'..(var:GetName() or '?')..'>' + else + var = '<table>' + 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