Jump to content
Sign in to follow this  
Habskilla

Macro to put tooltips on cursor

Recommended Posts

I have been using TinyTip but I think it is causing issues with Questie, whenever I mouse over a quest target the quest shows in the tooltip 4 times (http://imgur.com/FwfZd5f)

I have tried two different ways to get this to work and nothing is working, first I tried this macro ingame

/run hooksecurefunc("gametooltip_setdefaultanchor", function(s,p) s:setowner(p,"anchor_cursor") end)

but I get this error "[string "hooksecurefunc("gametooltip_setdefaultancho..."] attempt to call global 'hooksecurefunc' (a nil value)

 

I then tried making my own addon using a function I found online, 

local function setPoint(self)

local scale = self:GetEffectiveScale() 
    local x, y = GetCursorPosition() 
    self:ClearAllPoints() 
    self:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMLEFT", x / scale, y / scale) 
    end 
  	
    hooksecurefunc("GameTooltip_SetDefaultAnchor", function(tooltip, parent) 
    tooltip:SetOwner(parent, "ANCHOR_CURSOR") 
    setPoint(tooltip) tooltip.default = 1 
    end)

and that isn't even returning an error so I am probably doing something wrong (I have the correct .toc and .lua files so I'm not sure why it isnt working). Can anyone help me out?

 

edit: Fixed my issue with TinyTip, I just disabled all the extra features and it seems to fixed my issue

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×