i use an addon to position my tooltip at or about my mouse... but when quickly moving between unitframes (player<->pet or raid<->party) the tooltip disapears? i thought it might be a problem with the tooltip addon but i reduced the tooltip addon to just:
function GameTooltip_SetDefaultAnchor(tooltip, parent, ...)
tooltip:SetOwner(parent, "ANCHOR_CURSOR")
end
and it still disapears when i mouse between unitframes but not between units in the world
i have only that single 3 line addon running
any ideas? i guess i am missing something i should be doing in there? or i am (obviously) doing it wrong
I'm sure the addon you're referring to is mine, and I've been trying to figure this out too. Maybe it needs tooltip:Show() after the :SetOwner() line, even though the default UI doesn't?
-- Fixing unit frames tooltip. Quirk: Using ANCHOR_PRESERVE makes the tooltip "stick" when mousing over some objects including units on the WorldFrame and fade away after removing the mouse from said objects, but at least it works properly on unit frames.
oh just kinda... ya its a little jumpy now... but does not disapear :) hrm
local function AddonName_anchor(frame)
local x, y = GetCursorPosition();
local scale = frame:GetEffectiveScale();
frame:ClearAllPoints();
frame:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", (x/scale + 20), (y/scale + 20));
end
hooksecurefunc("GameTooltip_SetDefaultAnchor",
function(tooltip, parent)
tooltip:SetOwner(parent, "ANCHOR_NONE");
AddonName_anchor(tooltip);
end
);
local function AddonName_OnUpdate(self, elapsed)
AddonName_anchor(self);
end
GameTooltip:HookScript("OnUpdate", AddonName_OnUpdate);
this works... nice and smooth
i wrapped my call to GameTooltip_SetDefaultAnchor in that securehook syntax and changed anchor_cursor to anchor_none and call the anchor calculation from GameTooltip_SetDefaultAnchor and GameTooltip:OnUpdate
seems like anchor_cursor should be able to do that for you since it has already done the cals for you? maybe there is a bug or something i am missing
but anyway happy they are not disappearing anymore :)
edit: oh ya just gotta 'examine' his anti-fading code too
edit: i guess the whole hooksecure thing is not needed
thanks
and it still disapears when i mouse between unitframes but not between units in the world
i have only that single 3 line addon running
any ideas? i guess i am missing something i should be doing in there? or i am (obviously) doing it wrong
please and thanks
???
oh just kinda... ya its a little jumpy now... but does not disapear :) hrm
http://us.battle.net/wow/en/forum/topic/2369882354
i tried it
http://wow.curse.com/downloads/wow-addons/details/tip-tac.aspx
and it works fine with no disapear or stutter
not sure what the difference is yet but... :)
this works... nice and smooth
i wrapped my call to GameTooltip_SetDefaultAnchor in that securehook syntax and changed anchor_cursor to anchor_none and call the anchor calculation from GameTooltip_SetDefaultAnchor and GameTooltip:OnUpdate
seems like anchor_cursor should be able to do that for you since it has already done the cals for you? maybe there is a bug or something i am missing
but anyway happy they are not disappearing anymore :)
edit: oh ya just gotta 'examine' his anti-fading code too
edit: i guess the whole hooksecure thing is not needed
thanks