Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Chat_Frame_Buttons = {
- ChatFrameChannelButton,
- ChatFrameMenuButton,
- ChatFrameToggleVoiceDeafenButton,
- ChatFrameToggleVoiceMuteButton,
- QuickJoinToastButton,
- }
- local Chat_Frame_Numbers = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10,}
- local Chat_Frame_Textures = {
- "Background",
- "BottomLeftTexture",
- "BottomRightTexture",
- "BottomTexture",
- "ButtonFrameBackground",
- "ButtonFrameBottomLeftTexture",
- "ButtonFrameBottomRightTexture",
- "ButtonFrameBottomTexture",
- "ButtonFrameLeftTexture",
- "ButtonFrameRightTexture",
- "ButtonFrameTopLeftTexture",
- "ButtonFrameTopRightTexture",
- "ButtonFrameTopTexture",
- "LeftTexture",
- "RightTexture",
- "TopLeftTexture",
- "TopRightTexture",
- "TopTexture",
- }
- local Chat_Frame_Textures2 = {
- "EditBoxFocusLeft",
- "EditBoxFocusMid",
- "EditBoxFocusRight",
- "EditBoxLeft",
- "EditBoxMid",
- "EditBoxRight",
- "TabHighlightLeft",
- "TabHighlightMiddle",
- "TabHighlightRight",
- "TabLeft",
- "TabMiddle",
- "TabRight",
- "TabSelectedLeft",
- "TabSelectedMiddle",
- "TabSelectedRight",
- "TabText",
- }
- local function Hide_Chat_Frame_Buttons_Chat_Frame_Textures()
- for _, frame in pairs(Chat_Frame_Buttons) do
- frame:SetAlpha(0)
- end
- for _, numbers in pairs(Chat_Frame_Numbers) do
- for _, textures in pairs(Chat_Frame_Textures) do
- _G["ChatFrame"..numbers..textures]:Hide()
- end
- for _, textures2 in pairs(Chat_Frame_Textures2) do
- _G["ChatFrame"..numbers..textures2]:SetAlpha(0)
- end
- end
- CombatLogQuickButtonFrame_CustomTexture:Hide()
- end
- local function OnEnter()
- if DHBT then DHBT:Cancel() end
- for _, frame in pairs(Chat_Frame_Buttons) do
- frame:SetAlpha(1)
- end
- for _, numbers in pairs(Chat_Frame_Numbers) do
- for _, textures in pairs(Chat_Frame_Textures) do
- _G["ChatFrame"..numbers..textures]:Show()
- end
- for _, textures2 in pairs(Chat_Frame_Textures2) do
- _G["ChatFrame"..numbers..textures2]:SetAlpha(1)
- end
- end
- CombatLogQuickButtonFrame_CustomTexture:Show()
- end
- local function OnLeave()
- DHBT = C_Timer.NewTimer(.5, Hide_Chat_Frame_Buttons_Chat_Frame_Textures)
- end
- local function SetupHooks(frame)
- frame:HookScript("OnEnter", OnEnter)
- frame:HookScript("OnLeave", OnLeave)
- end
- SetupHooks(ChatFrame1)
- SetupHooks(ChatFrame2)
- SetupHooks(ChatFrame3)
- SetupHooks(ChatFrame4)
- SetupHooks(ChatFrame5)
- SetupHooks(ChatFrame6)
- SetupHooks(ChatFrame7)
- SetupHooks(ChatFrame8)
- SetupHooks(ChatFrame9)
- SetupHooks(ChatFrame10)
- SetupHooks(ChatFrame1ButtonFrame)
- SetupHooks(ChatFrame2ButtonFrame)
- SetupHooks(ChatFrame3ButtonFrame)
- SetupHooks(ChatFrame4ButtonFrame)
- SetupHooks(ChatFrame5ButtonFrame)
- SetupHooks(ChatFrame6ButtonFrame)
- SetupHooks(ChatFrame7ButtonFrame)
- SetupHooks(ChatFrame8ButtonFrame)
- SetupHooks(ChatFrame9ButtonFrame)
- SetupHooks(ChatFrame10ButtonFrame)
- SetupHooks(ChatFrame1Tab)
- SetupHooks(ChatFrame2Tab)
- SetupHooks(ChatFrame3Tab)
- SetupHooks(ChatFrame4Tab)
- SetupHooks(ChatFrame5Tab)
- SetupHooks(ChatFrame6Tab)
- SetupHooks(ChatFrame7Tab)
- SetupHooks(ChatFrame8Tab)
- SetupHooks(ChatFrame9Tab)
- SetupHooks(ChatFrame10Tab)
- SetupHooks(CombatLogQuickButtonFrameButton1)
- SetupHooks(CombatLogQuickButtonFrameButton2)
- for _, frame in pairs(Chat_Frame_Buttons) do
- SetupHooks(frame)
- frame:SetAlpha(0)
- end
- for _, numbers in pairs(Chat_Frame_Numbers) do
- for _, textures in pairs(Chat_Frame_Textures) do
- _G["ChatFrame"..numbers..textures]:Hide()
- end
- for _, textures2 in pairs(Chat_Frame_Textures2) do
- _G["ChatFrame"..numbers..textures2]:SetAlpha(0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement