Thread Tools Display Modes
09-01-18, 11:29 PM   #1
Jynks
A Frostmaul Preserver
Join Date: Oct 2006
Posts: 264
Tooltip to put tooltip at mouse coursor and hide during combat?

I'd like to find a mod to put the tooltip at the mouse coursor and then hide it in combat... even better would be the ability to manually set the offset, so it is near the mouse cursor but not covering the thing you are mouse overing.

I found to mods... the 1st one works.. but the 2nd one disnt..


Anchor Tooltip to Mouse
https://www.wowinterface.com/downloa...iptoMouse.html

Combat Hide Tooltip
https://www.wowinterface.com/downloa...deTooltip.html

Any ideas?

Thanks again.. and I just want to say wow Interface never stops impressing me. I have been coming here on and off for nearly a decade as I leave and come back to wow, and everyone is always so nice in helping me rebuild my UI.
  Reply With Quote
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
09-03-18, 08:00 PM   #3
Jynks
A Frostmaul Preserver
Join Date: Oct 2006
Posts: 264
thank you.. I'll try this.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Tooltip to put tooltip at mouse coursor and hide during combat?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off