From c6ff5ff1131ed684003c70e5a6d219ca0ebfe45b Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 5 Mar 2021 16:47:11 -0500 Subject: [PATCH] Setup some chat stuff on PLAYER_LOGIN --- MyAddon.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/MyAddon.lua b/MyAddon.lua index c6100ef..3e115b3 100755 --- a/MyAddon.lua +++ b/MyAddon.lua @@ -121,6 +121,27 @@ end function events:PLAYER_LOGIN(...) -- found from some forums local b=ActionButton8 _MH=_MH or(b:SetAttribute("*type5","macro")or SecureHandlerWrapScript(b,"PreClick",b,'Z=IsAltKeyDown()and 0 or(Z or 0)%8+1 self:SetAttribute("macrotext5","/wm [nomod]"..Z)'))or 1 + + QuickJoinToastButton:Hide() + ChatFrameChannelButton:Hide() + ChatFrameMenuButton:Hide() + ChatFrame1ButtonFrame:Hide() + + -- ChatFrame1.ScrollBar:Hide() + -- ChatFrame1.ScrollToBottomButton:Hide() + + ChatFrame1:SetWidth(400) + ChatFrame1:SetHeight(150) + + ChatFrame1:ClearAllPoints() + ChatFrame1:SetClampRectInsets(0, 0, 0, 0) + ChatFrame1:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 0, 0) + + ChatFrame1EditBox:ClearAllPoints() + ChatFrame1EditBox:SetPoint("BOTTOMLEFT", ChatFrame1, "TOPLEFT", 0, 0) + ChatFrame1EditBox:SetPoint("RIGHT", ChatFrame1, 0, 0) + + ChatFrame1:SetUserPlaced(true) end function events:PLAYER_ROLES_ASSIGNED(...)