tooltip: fix empty tooltips on cursor anchor

This commit is contained in:
shagu
2016-11-12 22:33:07 +01:00
parent 537c8116dc
commit 0fb417e6c0
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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)
+4 -4
View File
@@ -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))
+1 -1
View File
@@ -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)