if this:GetID() == 1 then
this:RegisterEvent("EXECUTE_CHAT_LINE")
this:RegisterEvent("UPDATE_CHAT_WINDOWS")
end
-- `isDocked` is NOT set here, and that is the reference's own shape: the flag is
-- `FCF_DockFrame`'s to write (FloatingChatFrame.lua:1153), and the chat-cache
-- load is what calls it — this file's trailing seeding loop, which reads
-- `GetChatWindowInfo`'s `docked` position exactly as `FloatingChatFrame_Update`
-- (l.34-70) does.
--
-- It briefly lived here (1712), gated to ids 1 and 2, while there was no dock
-- model to own it. There is one now (1714), and leaving the assignment here would
-- break it outright: `FCF_DockFrame` early-returns on an already-docked frame, so
-- a pre-set flag would keep both windows out of `DOCKED_CHAT_FRAMES` — docked
-- according to the flag, absent from the list every dock verb walks.
if event == "EXECUTE_CHAT_LINE" then
SubmitChatInput(arg1)
elseif event == "UPDATE_CHAT_WINDOWS" then
BenillaFCF_LoadWindowLooks()
end
ChatFrame_OnUpdate(arg1)
-- WoW wheel convention: +1 per notch up, -1 down. Up = older messages.
if arg1 > 0 then this:ScrollUp() else this:ScrollDown() end
BenillaChatFrame_DismissCursor(arg1)
SetItemRef(arg1, arg2, arg3)
FCF_StartMove(this)
FCF_StopMove(this)
FCF_OnUpdate(arg1)
UIMenu_OnShow()
PlaySound("UChatScrollButton")
this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b)
this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b)
UIMenu_OnUpdate(arg1)
BenillaOnEmoteMenuLoad(BenillaEmoteMenuList)
BenillaOnEmoteMenuLoad(BenillaVoiceMacroList)
ChatMenu_OnLoad()
UIMenu_OnShow()
EmoteMenu:Hide()
VoiceMacroMenu:Hide()
this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b)
this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b)
SubmitChatInput(this:GetText())
this:SetText("")
this:ClearFocus()
this:Hide()
this:SetText("")
this:ClearFocus()
this:Hide()
BenillaChatTabPressed()