mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
chat: add option to hide combatlog
This commit is contained in:
@@ -463,6 +463,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("chat", "right", "alwaysshow", "0")
|
||||
pfUI:UpdateConfig("chat", "right", "width", "380")
|
||||
pfUI:UpdateConfig("chat", "right", "height", "180")
|
||||
pfUI:UpdateConfig("chat", "global", "hidecombat", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "tabdock", "1")
|
||||
pfUI:UpdateConfig("chat", "global", "tabmouse", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "custombg", "0")
|
||||
|
||||
@@ -313,12 +313,22 @@ pfUI:RegisterModule("chat", function ()
|
||||
end
|
||||
|
||||
if i == 1 then
|
||||
-- General
|
||||
tab:SetParent(pfUI.chat.left.panelTop)
|
||||
frame:SetParent(pfUI.chat.left)
|
||||
frame.isDocked = true
|
||||
frame:SetPoint("TOPLEFT", pfUI.chat.left ,"TOPLEFT", default_border, -panelheight)
|
||||
frame:SetPoint("BOTTOMRIGHT", pfUI.chat.left ,"BOTTOMRIGHT", -default_border, panelheight)
|
||||
elseif i == 2 then
|
||||
-- Combat Log
|
||||
if C.chat.global.combathide == "1" then
|
||||
FCF_UnDockFrame(frame)
|
||||
FCF_Close(frame)
|
||||
elseif not frame.isDocked and not frame:IsVisible() then
|
||||
FCF_DockFrame(frame)
|
||||
end
|
||||
elseif i == 3 and C.chat.right.enable == "1" then
|
||||
-- Loot & Spam
|
||||
tab:SetParent(pfUI.chat.right.panelTop)
|
||||
frame:SetParent(pfUI.chat.right)
|
||||
frame:ClearAllPoints()
|
||||
|
||||
@@ -1492,6 +1492,7 @@ 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["Hide Combat Log"], C.chat.global, "combathide", "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")
|
||||
|
||||
Reference in New Issue
Block a user