View Single Post
03-30-15, 11:43 AM   #4
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
Lua Code:
  1. GameTooltip.HideAction = true
  2.  
  3. function GameTooltip:ToggleAction()
  4.    self.HideAction = not self.HideAction
  5. end
  6. GameTooltip:HookScript("OnShow", function(self)
  7.       local actionButton = self:GetOwner() and self:GetOwner().HotKey
  8.       if actionButton and self.HideAction then
  9.          self:Hide()
  10.       end
  11. end)
Toggle it on/off using:
Lua Code:
  1. /run GameTooltip:ToggleAction()
Here's the whole thing in macro format. Pressing it will toggle on/off:
Lua Code:
  1. /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
__________________

Last edited by MunkDev : 03-30-15 at 12:01 PM.
  Reply With Quote