-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuttons.lua
29 lines (25 loc) · 1.23 KB
/
buttons.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--[[ Button Hide Module ]]--
local _, BCM = ...
BCM.modules[#BCM.modules+1] = function()
if bcmDB.BCM_ButtonHide then return end
local hideFunc = function(frame) frame:Hide() end
ChatFrameMenuButton:HookScript("OnShow", hideFunc)
ChatFrameMenuButton:Hide() --Hide the chat shortcut button for emotes/languages/etc
ChatFrameToggleVoiceDeafenButton:HookScript("OnShow", hideFunc)
ChatFrameToggleVoiceDeafenButton:Hide() --Hide the voice deafen button
ChatFrameToggleVoiceMuteButton:HookScript("OnShow", hideFunc)
ChatFrameToggleVoiceMuteButton:Hide() --Hide the voice mute button
ChatFrameChannelButton:HookScript("OnShow", hideFunc)
ChatFrameChannelButton:Hide() --Hide the voice mute button
TextToSpeechButtonFrame:HookScript("OnShow", hideFunc)
TextToSpeechButtonFrame:Hide() --Hide the TTS config button
if QuickJoinToastButton then
QuickJoinToastButton:HookScript("OnShow", hideFunc) --Hide the "Friends Online" count button
QuickJoinToastButton:Hide() --Hide the "Friends Online" count button
end
BCM.chatFuncsPerFrame[#BCM.chatFuncsPerFrame+1] = function(_, n)
local btnFrame = _G[n.."ButtonFrame"]
btnFrame:HookScript("OnShow", hideFunc) --Hide the up/down arrows
btnFrame:Hide() --Hide the up/down arrows
end
end