mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-11 08:00:01 +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"
|
||||
|
||||
Reference in New Issue
Block a user