mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 12:40:02 +00:00
chat: add option to always show right pane
This commit is contained in:
+1
-1
@@ -395,7 +395,7 @@ pfUI:RegisterModule("chat", function ()
|
||||
pfUI.chat:SetScript("OnEvent", function()
|
||||
if event == "PLAYER_ENTERING_WORLD" or event == "UI_SCALE_CHANGED" then
|
||||
pfUI.chat:RefreshChat()
|
||||
if pfUI_config.chat.right.enable == "0" then
|
||||
if pfUI_config.chat.right.enable == "0" and pfUI_config.chat.right.alwaysshow == "0" then
|
||||
pfUI.chat.right:Hide()
|
||||
end
|
||||
elseif event == "FRIENDLIST_UPDATE" or event == "PLAYER_ENTERING_WORLD" then
|
||||
|
||||
@@ -147,6 +147,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("chat", "left", "width", "380")
|
||||
pfUI:UpdateConfig("chat", "left", "height", "180")
|
||||
pfUI:UpdateConfig("chat", "right", "enable", "0")
|
||||
pfUI:UpdateConfig("chat", "right", "alwaysshow", "0")
|
||||
pfUI:UpdateConfig("chat", "right", "width", "380")
|
||||
pfUI:UpdateConfig("chat", "right", "height", "180")
|
||||
pfUI:UpdateConfig("chat", "global", "tabdock", "1")
|
||||
|
||||
@@ -992,6 +992,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Left chat height:", pfUI_config.chat.left, "height")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Right chat width:", pfUI_config.chat.right, "width")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Right chat height:", pfUI_config.chat.right, "height")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Always show right chat pane:", pfUI_config.chat.right, "alwaysshow", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Display chat-tab dock as panel:", pfUI_config.chat.global, "tabdock", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Use custom colors for chats:", pfUI_config.chat.global, "custombg", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Chat Background color:", pfUI_config.chat.global, "background", "color")
|
||||
|
||||
Reference in New Issue
Block a user