mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-19 19:10:49 +00:00
chat: option to autohide chat-dock
This commit is contained in:
@@ -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
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user