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"
+2 -1
View File
@@ -1401,7 +1401,8 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(this, T["Right Chat Width"], C.chat.right, "width")
CreateConfig(this, T["Right Chat Height"], C.chat.right, "height")
CreateConfig(this, T["Enable Right Chat Window"], C.chat.right, "alwaysshow", "checkbox")
CreateConfig(this, T["Enable Chat Dock"], C.chat.global, "tabdock", "checkbox")
CreateConfig(this, T["Enable Chat Dock Background"], C.chat.global, "tabdock", "checkbox")
CreateConfig(this, T["Only Show Chat Dock On Mouseover"], C.chat.global, "tabmouse", "checkbox")
CreateConfig(this, T["Enable Custom Colors"], C.chat.global, "custombg", "checkbox")
CreateConfig(this, T["Chat Background Color"], C.chat.global, "background", "color")
CreateConfig(this, T["Chat Border Color"], C.chat.global, "border", "color")