tooltip: hackfix tooltip placement

This commit is contained in:
shagu
2016-12-10 20:32:33 +01:00
parent e55d1ca3b2
commit c6b0ac623f
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -78,6 +78,18 @@ pfUI:RegisterModule("skin", function ()
pfUI.utils:CreateBackdrop(ShoppingTooltip1)
pfUI.utils:CreateBackdrop(ShoppingTooltip2)
ShoppingTooltip1:SetScript("OnShow", function()
local a, b, c, _, _ = this:GetPoint()
local border = tonumber(pfUI_config.appearance.border.default)
this:SetPoint(a, b, c, border*2+1, 0)
end)
ShoppingTooltip2:SetScript("OnShow", function()
local a, b, c, _, _ = this:GetPoint()
local border = tonumber(pfUI_config.appearance.border.default)
this:SetPoint(a, b, c, border*2+1, 0)
end)
pfUI.utils:CreateBackdrop(TicketStatusFrame)
TicketStatusFrame:ClearAllPoints()
TicketStatusFrame:SetPoint("TOP", 0, -5)
+1 -1
View File
@@ -1,5 +1,5 @@
pfUI:RegisterModule("tooltip", function ()
pfUI.utils:CreateBackdrop( GameTooltip)
pfUI.utils:CreateBackdrop(GameTooltip)
if pfUI_config.tooltip.position == "cursor" then
function GameTooltip_SetDefaultAnchor(tooltip, parent)