View Single Post
10-13-22, 08:18 AM   #6
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 323
Glad it works for you.

If you want to use other frames instead of UIParent as the reference frame, just do it.
If you want to make this conditional, put the condition into the hooked function. Like this:

Lua Code:
  1. hooksecurefunc("GameTooltip_SetDefaultAnchor", function(tooltip)
  2.   if MiniMap and MiniMap:IsShown() then
  3.     tooltip:SetPoint("TOPRIGHT", MiniMap, "TOPLEFT", -10, 0)
  4.   else
  5.     tooltip:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -500, 500)
  6.   end
  7. end)
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote