tooltip: set dodge mode to default

This commit is contained in:
shagu
2017-07-19 21:32:07 +02:00
parent a524884731
commit cbbfb056af
3 changed files with 12 additions and 4 deletions
+10 -2
View File
@@ -49,8 +49,16 @@ CreateBackdrop(GameTooltip, nil, nil, alpha)
GameTooltip:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", 0, -C.appearance.border.default*2)
end
elseif C.tooltip.position == "chat" then
local anchor = ChatFrame3
if pfUI.chat then anchor = pfUI.chat.right end
local anchor = pfUI.panel.right
if pfUI.chat and pfUI.chat.right:IsShown() then
anchor = pfUI.chat.right
end
if pfUI.bag and pfUI.bag.right and pfUI.bag.right:IsShown() then
anchor = pfUI.bag.right
end
GameTooltip:SetPoint("BOTTOMRIGHT", anchor, "TOPRIGHT", 0, C.appearance.border.default*2)
end
end