mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 02:36:02 +00:00
chat: add option to disable chat fadeout
This commit is contained in:
+7
-1
@@ -227,7 +227,13 @@ pfUI:RegisterModule("chat", function ()
|
||||
local frame = getglobal("ChatFrame"..i)
|
||||
local tab = getglobal("ChatFrame"..i.."Tab")
|
||||
|
||||
frame:SetTimeVisible(tonumber(pfUI_config.chat.global.fadetime))
|
||||
|
||||
if pfUI_config.chat.global.fadeout == "1" then
|
||||
frame:SetFading(true)
|
||||
frame:SetTimeVisible(tonumber(pfUI_config.chat.global.fadetime))
|
||||
else
|
||||
frame:SetFading(false)
|
||||
end
|
||||
|
||||
if i == 3 and pfUI_config.chat.right.enable == "1" then
|
||||
tab:SetParent(pfUI.chat.right.panelTop)
|
||||
|
||||
+2
-1
@@ -151,7 +151,8 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("chat", "global", "border", ".4,.4,.4,.5")
|
||||
pfUI:UpdateConfig("chat", "global", "whispermod", "1")
|
||||
pfUI:UpdateConfig("chat", "global", "whisper", "1,.6,1,1")
|
||||
pfUI:UpdateConfig("chat", "global", "fadetime", "86400")
|
||||
pfUI:UpdateConfig("chat", "global", "fadeout", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "fadetime", "300")
|
||||
|
||||
pfUI:UpdateConfig("nameplates", nil, "showcastbar", "1")
|
||||
pfUI:UpdateConfig("nameplates", nil, "spellname", "0")
|
||||
|
||||
@@ -994,6 +994,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Chat Border color:", pfUI_config.chat.global, "border", "color")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Change layout of incoming whispers:", pfUI_config.chat.global, "whispermod", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Color of incoming whispers:", pfUI_config.chat.global, "whisper", "color")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Fade old chat messages:", pfUI_config.chat.global, "fadeout", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Time in seconds until the chat gets faded:", pfUI_config.chat.global, "fadetime")
|
||||
|
||||
-- nameplates
|
||||
|
||||
Reference in New Issue
Block a user