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
+1 -1
View File
@@ -441,7 +441,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("castbar", "target", "hide_pfui", "0")
pfUI:UpdateConfig("castbar", nil, "use_unitfonts", "0")
pfUI:UpdateConfig("tooltip", nil, "position", "bottom")
pfUI:UpdateConfig("tooltip", nil, "position", "chat")
pfUI:UpdateConfig("tooltip", nil, "extguild", "1")
pfUI:UpdateConfig("tooltip", nil, "alpha", "0.8")
pfUI:UpdateConfig("tooltip", "compare", "showalways", "0")
+1 -1
View File
@@ -655,7 +655,7 @@ pfUI:RegisterModule("gui", function ()
local dropdown_tooltip_position = {
"bottom:" .. T["Bottom"],
"chat:" .. T["Chat"],
"chat:" .. T["Dodge"],
"cursor:" .. T["Cursor"]
}
+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