chat: option to autohide chat-dock

This commit is contained in:
shagu
2017-07-02 22:39:14 +02:00
parent 3b6d4b910f
commit 6a015b5a47
10 changed files with 29 additions and 8 deletions
+13
View File
@@ -369,6 +369,19 @@ pfUI:RegisterModule("chat", function ()
end
end
if C.chat.global.tabmouse == "1" then
pfUI.chat.mouseovertab = CreateFrame("Frame")
pfUI.chat.mouseovertab:SetScript("OnUpdate", function()
if MouseIsOver(pfUI.chat.left) or MouseIsOver(pfUI.chat.right) then
pfUI.chat.left.panelTop:Show()
pfUI.chat.right.panelTop:Show()
else
pfUI.chat.left.panelTop:Hide()
pfUI.chat.right.panelTop:Hide()
end
end)
end
function pfUI.chat.SetupRightChat(state)
if state then
C.chat.right.enable = "1"