mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update #29
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user