Lua Code:
GameTooltip.HideAction = true
function GameTooltip:ToggleAction()
self.HideAction = not self.HideAction
end
GameTooltip:HookScript("OnShow", function(self)
local actionButton = self:GetOwner() and self:GetOwner().HotKey
if actionButton and self.HideAction then
self:Hide()
end
end)
Toggle it on/off using:
Lua Code:
/run GameTooltip:ToggleAction()
Here's the whole thing in macro format. Pressing it will toggle on/off:
Lua Code:
/run local t=GameTooltip if t.HideAB~=nil then t.HideAB=not t.HideAB else t.HideAB=true t:HookScript("OnShow", function(s) local a = s:GetOwner() and s:GetOwner().HotKey if a and s.HideAB then s:Hide() end end) end