View Single Post
09-03-18, 06:43 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
https://wow.gamepedia.com/API_GameTooltip_SetOwner

Lua Code:
  1. local function SetDefaultAnchor(self, parent)
  2.   local xOffset, yOffset = 0, 0
  3.   if InCombatLockdown() then
  4.     self:SetOwner(parent, "ANCHOR_NONE")
  5.   else
  6.     self:SetOwner(parent, "ANCHOR_CURSOR", xOffset, yOffset)
  7.   end
  8. end
  9.  
  10. hooksecurefunc("GameTooltip_SetDefaultAnchor", SetDefaultAnchor)

Put the above in here and give your addon a desired name.
https://addon.bool.no/
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-03-18 at 06:49 AM.
  Reply With Quote