Setup some chat stuff on PLAYER_LOGIN (#18)
This commit is contained in:
parent
0896079574
commit
ea47743b72
1 changed files with 21 additions and 0 deletions
21
MyAddon.lua
21
MyAddon.lua
|
@ -121,6 +121,27 @@ end
|
||||||
function events:PLAYER_LOGIN(...)
|
function events:PLAYER_LOGIN(...)
|
||||||
-- found from some forums
|
-- 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
|
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
|
end
|
||||||
|
|
||||||
function events:PLAYER_ROLES_ASSIGNED(...)
|
function events:PLAYER_ROLES_ASSIGNED(...)
|
||||||
|
|
Loading…
Reference in a new issue