mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-16 18:00:48 +00:00
chat: set max lines before history is added
This commit is contained in:
+4
-4
@@ -359,10 +359,6 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function ()
|
|||||||
frame:SetFading(false)
|
frame:SetFading(false)
|
||||||
end
|
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
|
if i == 3 and C.chat.right.enable == "1" then
|
||||||
-- Loot & Spam
|
-- Loot & Spam
|
||||||
local bottompadding = pfUI.panel and pfUI.panel.right:IsShown() and not pfUI_config.position["pfPanelRight"] and panelheight or default_border
|
local bottompadding = pfUI.panel and pfUI.panel.right:IsShown() and not pfUI_config.position["pfPanelRight"] and panelheight or default_border
|
||||||
@@ -818,6 +814,10 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function ()
|
|||||||
end
|
end
|
||||||
|
|
||||||
for i=1,NUM_CHAT_WINDOWS do
|
for i=1,NUM_CHAT_WINDOWS do
|
||||||
|
if C.chat.global.maxlines ~= "128" then
|
||||||
|
_G["ChatFrame"..i]:SetMaxLines(tonumber(C.chat.global.maxlines) or 128)
|
||||||
|
end
|
||||||
|
|
||||||
if not _G["ChatFrame"..i].HookAddMessage then
|
if not _G["ChatFrame"..i].HookAddMessage then
|
||||||
if C.chat.text.history == "1" then
|
if C.chat.text.history == "1" then
|
||||||
-- write history to chat
|
-- write history to chat
|
||||||
|
|||||||
Reference in New Issue
Block a user