mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
chat: add option for sticky chat
This commit is contained in:
@@ -216,6 +216,13 @@ pfUI:RegisterModule("chat", function ()
|
||||
function pfUI.chat:RefreshChat()
|
||||
local panelheight = pfUI_config.global.font_size+default_border*5
|
||||
|
||||
if pfUI_config.chat.global.sticky == "1" then
|
||||
ChatTypeInfo.WHISPER.sticky = 1
|
||||
ChatTypeInfo.OFFICER.sticky = 1
|
||||
ChatTypeInfo.RAID_WARNING.sticky = 1
|
||||
ChatTypeInfo.CHANNEL.sticky = 1
|
||||
end
|
||||
|
||||
for i,v in ipairs({ChatFrameMenuButton:GetRegions()}) do
|
||||
v:SetAllPoints(ChatFrameMenuButton)
|
||||
local _, class = UnitClass("player")
|
||||
|
||||
@@ -151,6 +151,7 @@ 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", "sticky", "1")
|
||||
pfUI:UpdateConfig("chat", "global", "fadeout", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "fadetime", "300")
|
||||
|
||||
|
||||
@@ -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, "Use sticky chat (remember last channel):", pfUI_config.chat.global, "sticky", "checkbox")
|
||||
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user