mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-26 17:36:04 +00:00
chat: add option to set maximum number of chat lines
This commit is contained in:
@@ -672,6 +672,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("chat", "global", "tabdock", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "tabmouse", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "chatflash", "1")
|
||||
pfUI:UpdateConfig("chat", "global", "maxlines", "128")
|
||||
pfUI:UpdateConfig("chat", "global", "frameshadow", "1")
|
||||
pfUI:UpdateConfig("chat", "global", "custombg", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "background", ".2,.2,.2,.5")
|
||||
|
||||
@@ -359,6 +359,10 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function ()
|
||||
frame:SetFading(false)
|
||||
end
|
||||
|
||||
if C.chat.global.maxlines ~= "128" then
|
||||
frame:SetMaxLines(tonumber(C.chat.global.maxlines) or 128)
|
||||
end
|
||||
|
||||
if i == 3 and C.chat.right.enable == "1" then
|
||||
-- Loot & Spam
|
||||
local bottompadding = pfUI.panel and pfUI.panel.right:IsShown() and not pfUI_config.position["pfPanelRight"] and panelheight or default_border
|
||||
|
||||
@@ -2190,6 +2190,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
||||
CreateConfig(nil, T["Enable Custom Incoming Whispers Layout"], C.chat.global, "whispermod", "checkbox")
|
||||
CreateConfig(nil, T["Incoming Whispers Color"], C.chat.global, "whisper", "color")
|
||||
CreateConfig(nil, T["Enable Sticky Chat"], C.chat.global, "sticky", "checkbox")
|
||||
CreateConfig(nil, T["Maximum Number Of Chat Lines"], C.chat.global, "maxlines")
|
||||
CreateConfig(nil, T["Enable Chat Fade"], C.chat.global, "fadeout", "checkbox")
|
||||
CreateConfig(nil, T["Seconds Before Chat Fade"], C.chat.global, "fadetime")
|
||||
CreateConfig(nil, T["Mousewheel Scroll Speed"], C.chat.global, "scrollspeed")
|
||||
|
||||
Reference in New Issue
Block a user