mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 18:06:02 +00:00
tooltip: fix empty tooltips on cursor anchor
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user