This commit is contained in:
Crum
2018-06-21 20:33:54 -05:00
parent d8071d2751
commit a52f8551ea
+6 -6
View File
@@ -1279,17 +1279,17 @@ function CH:AddLines(lines, ...)
end end
end end
function CH:ChatEdit_UpdateHeader() function CH:ChatEdit_UpdateHeader(editbox)
local type = this.chatType local type = editbox.chatType
if type == "CHANNEL" then if type == "CHANNEL" then
local id = GetChannelName(this.channelTarget) local id = GetChannelName(editbox.channelTarget)
if id == 0 then if id == 0 then
this:SetBackdropBorderColor(unpack(E.media.bordercolor)) editbox:SetBackdropBorderColor(unpack(E.media.bordercolor))
else else
this:SetBackdropBorderColor(ChatTypeInfo[type..id].r, ChatTypeInfo[type..id].g, ChatTypeInfo[type..id].b) editbox:SetBackdropBorderColor(ChatTypeInfo[type..id].r, ChatTypeInfo[type..id].g, ChatTypeInfo[type..id].b)
end end
elseif type then elseif type then
this:SetBackdropBorderColor(ChatTypeInfo[type].r, ChatTypeInfo[type].g, ChatTypeInfo[type].b) editbox:SetBackdropBorderColor(ChatTypeInfo[type].r, ChatTypeInfo[type].g, ChatTypeInfo[type].b)
end end
end end