mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
chat: adjustable width and increase default size
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ pfUI:RegisterModule("chat", function ()
|
||||
|
||||
pfUI.chat.left = CreateFrame("Frame", "pfChatLeft", UIParent)
|
||||
pfUI.chat.left:SetFrameStrata("BACKGROUND")
|
||||
pfUI.chat.left:SetWidth(350)
|
||||
pfUI.chat.left:SetWidth(pfUI_config.chat.left.width)
|
||||
pfUI.chat.left:SetHeight(pfUI_config.chat.left.height)
|
||||
pfUI.chat.left:SetPoint("BOTTOMLEFT", 5,5)
|
||||
pfUI.utils:UpdateMovable(pfUI.chat.left)
|
||||
@@ -160,7 +160,7 @@ pfUI:RegisterModule("chat", function ()
|
||||
|
||||
pfUI.chat.right = CreateFrame("Frame", "pfChatRight", UIParent)
|
||||
pfUI.chat.right:SetFrameStrata("BACKGROUND")
|
||||
pfUI.chat.right:SetWidth(350)
|
||||
pfUI.chat.right:SetWidth(pfUI_config.chat.right.width)
|
||||
pfUI.chat.right:SetHeight(pfUI_config.chat.right.height)
|
||||
pfUI.chat.right:SetPoint("BOTTOMRIGHT", -5,5)
|
||||
pfUI.utils:UpdateMovable(pfUI.chat.right)
|
||||
|
||||
+4
-2
@@ -85,8 +85,10 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("chat", "text", "timeformat", "%H:%M:%S")
|
||||
pfUI:UpdateConfig("chat", "text", "timebracket", "[]")
|
||||
pfUI:UpdateConfig("chat", "text", "timecolor", "dddddd")
|
||||
pfUI:UpdateConfig("chat", "left", "height", "150")
|
||||
pfUI:UpdateConfig("chat", "right", "height", "150")
|
||||
pfUI:UpdateConfig("chat", "left", "width", "400")
|
||||
pfUI:UpdateConfig("chat", "left", "height", "180")
|
||||
pfUI:UpdateConfig("chat", "right", "width", "400")
|
||||
pfUI:UpdateConfig("chat", "right", "height", "180")
|
||||
pfUI:UpdateConfig("chat", "global", "custombg", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "bgcolor", ".2,.2,.2")
|
||||
pfUI:UpdateConfig("chat", "global", "bgtransp", ".5")
|
||||
|
||||
+2
-2
@@ -708,7 +708,6 @@ pfUI:RegisterModule("gui", function ()
|
||||
pfUI.gui:CreateConfig(pfUI.gui.castbar, "Hide pfUI player castbar:", pfUI_config.castbar.player, "hide_pfui", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.castbar, "Hide pfUI target castbar:", pfUI_config.castbar.target, "hide_pfui", "checkbox")
|
||||
|
||||
|
||||
-- chat
|
||||
pfUI.gui.chat = pfUI.gui:CreateConfigTab("Chat")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Chat inputbox width:", pfUI_config.chat.text, "input_width")
|
||||
@@ -717,9 +716,10 @@ pfUI:RegisterModule("gui", function ()
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Timestamp format:", pfUI_config.chat.text, "timeformat")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Timestamp brackets:", pfUI_config.chat.text, "timebracket")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Timestamp color:", pfUI_config.chat.text, "timecolor")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Left chat width:", pfUI_config.chat.left, "width")
|
||||
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, "Use custom background:", pfUI_config.chat.global, "custombg", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Background color:", pfUI_config.chat.global, "bgcolor")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Background transparency:", pfUI_config.chat.global, "bgtransp")
|
||||
|
||||
Reference in New Issue
Block a user