Skip to content

Commit

Permalink
buttons: Disable button hiding in BfA for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed May 19, 2018
1 parent 0a7e6fe commit 1c10689
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions buttons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ 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) --Hide the chat shortcut button for emotes/languages/etc
ChatFrameMenuButton:Hide() --Hide the chat shortcut button for emotes/languages/etc
if QuickJoinToastButton then
QuickJoinToastButton:HookScript("OnShow", hideFunc) --Hide the "Friends Online" count button
QuickJoinToastButton:Hide() --Hide the "Friends Online" count button
end
if not C_Map then -- XXX 8.0
local hideFunc = function(frame) frame:Hide() end
ChatFrameMenuButton:HookScript("OnShow", hideFunc) --Hide the chat shortcut button for emotes/languages/etc
ChatFrameMenuButton:Hide() --Hide the chat shortcut button for emotes/languages/etc
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
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
end

0 comments on commit 1c10689

Please sign in to comment.