Skip to content

Commit

Permalink
buttons: Add the new BfA buttons to the hider.
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Jul 18, 2018
1 parent 0927c09 commit f759e98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion buttons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ BCM.modules[#BCM.modules+1] = function()
if bcmDB.BCM_ButtonHide then return end

local hideFunc = function(frame) frame:Hide() end
ChatFrameMenuButton:HookScript("OnShow", hideFunc) --Hide the chat shortcut button for emotes/languages/etc
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
Expand Down

0 comments on commit f759e98

Please sign in to comment.