mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 20:00:48 +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]:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
|
||||||
|
|
||||||
pfUI.uf.group[i]:SetScript("OnEnter", function()
|
pfUI.uf.group[i]:SetScript("OnEnter", function()
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_NONE")
|
GameTooltip_SetDefaultAnchor(GameTooltip, this)
|
||||||
GameTooltip:SetUnit("party" .. this.id)
|
GameTooltip:SetUnit("party" .. this.id)
|
||||||
GameTooltip:Show()
|
GameTooltip:Show()
|
||||||
end)
|
end)
|
||||||
|
|||||||
+4
-4
@@ -73,7 +73,7 @@ pfUI:RegisterModule("panel", function ()
|
|||||||
local real = GetRealZoneText()
|
local real = GetRealZoneText()
|
||||||
local sub = GetSubZoneText()
|
local sub = GetSubZoneText()
|
||||||
GameTooltip:ClearLines()
|
GameTooltip:ClearLines()
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_NONE")
|
GameTooltip_SetDefaultAnchor(GameTooltip, this)
|
||||||
GameTooltip:AddLine("|cff555555Timer")
|
GameTooltip:AddLine("|cff555555Timer")
|
||||||
GameTooltip:AddDoubleLine("Left Click", "|cffffffffShow/Hide Timer")
|
GameTooltip:AddDoubleLine("Left Click", "|cffffffffShow/Hide Timer")
|
||||||
GameTooltip:AddDoubleLine("Right Click", "|cffffffffReset Timer")
|
GameTooltip:AddDoubleLine("Right Click", "|cffffffffReset Timer")
|
||||||
@@ -101,7 +101,7 @@ pfUI:RegisterModule("panel", function ()
|
|||||||
local tooltip = function ()
|
local tooltip = function ()
|
||||||
local active = 0
|
local active = 0
|
||||||
GameTooltip:ClearLines()
|
GameTooltip:ClearLines()
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_NONE")
|
GameTooltip_SetDefaultAnchor(GameTooltip, this)
|
||||||
GameTooltip:AddLine("|cff555555Systeminfo")
|
GameTooltip:AddLine("|cff555555Systeminfo")
|
||||||
for i=1, GetNumAddOns() do
|
for i=1, GetNumAddOns() do
|
||||||
if IsAddOnLoaded(i) then
|
if IsAddOnLoaded(i) then
|
||||||
@@ -195,7 +195,7 @@ pfUI:RegisterModule("panel", function ()
|
|||||||
dchar = "|cff88ff88+"
|
dchar = "|cff88ff88+"
|
||||||
end
|
end
|
||||||
|
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_NONE")
|
GameTooltip_SetDefaultAnchor(GameTooltip, this)
|
||||||
GameTooltip:ClearLines()
|
GameTooltip:ClearLines()
|
||||||
|
|
||||||
GameTooltip:AddLine("|cff555555Money")
|
GameTooltip:AddLine("|cff555555Money")
|
||||||
@@ -294,7 +294,7 @@ pfUI:RegisterModule("panel", function ()
|
|||||||
local real = GetRealZoneText()
|
local real = GetRealZoneText()
|
||||||
local sub = GetSubZoneText()
|
local sub = GetSubZoneText()
|
||||||
GameTooltip:ClearLines()
|
GameTooltip:ClearLines()
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_NONE")
|
GameTooltip_SetDefaultAnchor(GameTooltip, this)
|
||||||
GameTooltip:AddLine("|cffffffff" .. real)
|
GameTooltip:AddLine("|cffffffff" .. real)
|
||||||
GameTooltip:AddLine(sub)
|
GameTooltip:AddLine(sub)
|
||||||
GameTooltip:AddLine("|cffaaaaaa" .. round(posX*100,1) .. " / " .. round(posY*100,1))
|
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]:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
|
||||||
|
|
||||||
pfUI.uf.raid[i]:SetScript("OnEnter", function()
|
pfUI.uf.raid[i]:SetScript("OnEnter", function()
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_NONE")
|
GameTooltip_SetDefaultAnchor(GameTooltip, this)
|
||||||
GameTooltip:SetUnit("raid" .. this.id)
|
GameTooltip:SetUnit("raid" .. this.id)
|
||||||
GameTooltip:Show()
|
GameTooltip:Show()
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user