-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuttons_Classic.lua
32 lines (28 loc) · 1.33 KB
/
buttons_Classic.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
30
31
32
--[[ 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
--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
local minimizeButton = _G[n.."MinimizeButton"]
if minimizeButton then
minimizeButton:HookScript("OnShow", hideFunc) --Hide the minimize button
minimizeButton:Hide() --Hide the minimize button
end
end
end