Add'on without GUI for move the default ToolTip where you want.
Very lightweight.
ReadMe.txt for some help.
Thanks p3lim !
edit:
For change the ToolTip anchor, open xToolTip.lua with wordpad and replace
the second line by :
Code:
tooltip:SetOwner(parent, "ANCHOR_xXx")
"xXx" can by :
CURSOR
BOTTOMRIGHT
BOTTOMLEFT
TOPRIGHT
TOPLEFT
CENTER
For example with ToolTip on CURSOR :
Code:
function GameTooltip_SetDefaultAnchor(tooltip, parent)
tooltip:SetOwner(parent, "ANCHOR_CURSOR")
end
--
--
If you want to attribute X, Y coords you can do it too.
Like that:
Code:
tooltip:SetOwner(parent, "anchor", x, y)
X and Y must be replaced by numbers, for example :
Code:
function GameTooltip_SetDefaultAnchor(tooltip, parent)
tooltip:SetOwner(parent, "anchor", 1500, -1150)
end
Et voilà.
|