diff --git a/modules/group.lua b/modules/group.lua index ce12628e..edf1a5a9 100644 --- a/modules/group.lua +++ b/modules/group.lua @@ -146,7 +146,7 @@ pfUI:RegisterModule("group", function () pfUI.uf.group[i]:RegisterForClicks('LeftButtonUp', 'RightButtonUp') pfUI.uf.group[i]:SetScript("OnEnter", function() - GameTooltip:SetOwner(this, "ANCHOR_NONE") + GameTooltip_SetDefaultAnchor(GameTooltip, this) GameTooltip:SetUnit("party" .. this.id) GameTooltip:Show() end) diff --git a/modules/panel.lua b/modules/panel.lua index eb8e7639..aa251ee8 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -73,7 +73,7 @@ pfUI:RegisterModule("panel", function () local real = GetRealZoneText() local sub = GetSubZoneText() GameTooltip:ClearLines() - GameTooltip:SetOwner(this, "ANCHOR_NONE") + GameTooltip_SetDefaultAnchor(GameTooltip, this) GameTooltip:AddLine("|cff555555Timer") GameTooltip:AddDoubleLine("Left Click", "|cffffffffShow/Hide Timer") GameTooltip:AddDoubleLine("Right Click", "|cffffffffReset Timer") @@ -101,7 +101,7 @@ pfUI:RegisterModule("panel", function () local tooltip = function () local active = 0 GameTooltip:ClearLines() - GameTooltip:SetOwner(this, "ANCHOR_NONE") + GameTooltip_SetDefaultAnchor(GameTooltip, this) GameTooltip:AddLine("|cff555555Systeminfo") for i=1, GetNumAddOns() do if IsAddOnLoaded(i) then @@ -195,7 +195,7 @@ pfUI:RegisterModule("panel", function () dchar = "|cff88ff88+" end - GameTooltip:SetOwner(this, "ANCHOR_NONE") + GameTooltip_SetDefaultAnchor(GameTooltip, this) GameTooltip:ClearLines() GameTooltip:AddLine("|cff555555Money") @@ -294,7 +294,7 @@ pfUI:RegisterModule("panel", function () local real = GetRealZoneText() local sub = GetSubZoneText() GameTooltip:ClearLines() - GameTooltip:SetOwner(this, "ANCHOR_NONE") + GameTooltip_SetDefaultAnchor(GameTooltip, this) GameTooltip:AddLine("|cffffffff" .. real) GameTooltip:AddLine(sub) GameTooltip:AddLine("|cffaaaaaa" .. round(posX*100,1) .. " / " .. round(posY*100,1)) diff --git a/modules/raid.lua b/modules/raid.lua index 4557cd04..01cedab3 100644 --- a/modules/raid.lua +++ b/modules/raid.lua @@ -111,7 +111,7 @@ pfUI:RegisterModule("raid", function () pfUI.uf.raid[i]:RegisterForClicks('LeftButtonUp', 'RightButtonUp') pfUI.uf.raid[i]:SetScript("OnEnter", function() - GameTooltip:SetOwner(this, "ANCHOR_NONE") + GameTooltip_SetDefaultAnchor(GameTooltip, this) GameTooltip:SetUnit("raid" .. this.id) GameTooltip:Show() end)