That sounds like the clickAnywhereButton. Scott, to save you hunting around while at work
Heres the relevant code in the FloatingChatWindow.lua file in case it helps you figure it out
Code:
<Button name="$parentClickAnywhereButton" setAllPoints="true" hidden="true" parentKey="clickAnywhereButton">
<Scripts>
<OnLoad>
FCFClickAnywhereButton_OnLoad(self);
</OnLoad>
<OnEvent>
FCFClickAnywhereButton_OnEvent(self, event, ...);
</OnEvent>
<OnClick>
ChatEdit_SetLastActiveWindow(self:GetParent().editBox);
</OnClick>
</Scripts>
</Button>
Code:
function FCFClickAnywhereButton_OnLoad(self)
self:SetFrameLevel(self:GetParent():GetFrameLevel() - 1);
self:RegisterEvent("VARIABLES_LOADED");
self:RegisterEvent("CVAR_UPDATE");
self:RegisterForClicks("LeftButtonDown", "RightButtonDown");
FCFClickAnywhereButton_UpdateState(self);
end
function FCFClickAnywhereButton_OnEvent(self, event, ...)
local arg1 = ...;
if ( event == "VARIABLES_LOADED" or
(event == "CVAR_UPDATE" and (arg1 == "chatStyle" or arg1 == "CHAT_WHOLE_WINDOW_CLICKABLE")) ) then
FCFClickAnywhereButton_UpdateState(self);
end
end
function FCFClickAnywhereButton_UpdateState(self)
if ( GetCVar("chatStyle") == "im" and GetCVarBool("wholeChatWindowClickable") and
LAST_ACTIVE_CHAT_EDIT_BOX ~= self:GetParent().editBox ) then
self:Show();
else
self:Hide();
end
end