mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 19:50:02 +00:00
add config option for chat height
This commit is contained in:
+2
-2
@@ -4,7 +4,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:SetHeight(150)
|
||||
pfUI.chat.left:SetHeight(pfUI_config.chat.left.height)
|
||||
pfUI.chat.left:SetPoint("BOTTOMLEFT", 5,5)
|
||||
pfUI.utils:loadPosition(pfUI.chat.left)
|
||||
pfUI.chat.left:SetBackdrop(pfUI.backdrop)
|
||||
@@ -154,7 +154,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:SetHeight(150)
|
||||
pfUI.chat.right:SetHeight(pfUI_config.chat.right.height)
|
||||
pfUI.chat.right:SetPoint("BOTTOMRIGHT", -5,5)
|
||||
pfUI.utils:loadPosition(pfUI.chat.right)
|
||||
pfUI.chat.right:SetBackdrop(pfUI.backdrop)
|
||||
|
||||
@@ -42,6 +42,8 @@ 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("nameplates", nil, "showcastbar", "1")
|
||||
pfUI:UpdateConfig("nameplates", nil, "showdebuffs", "0")
|
||||
pfUI:UpdateConfig("nameplates", nil, "clickthrough", "0")
|
||||
|
||||
@@ -559,6 +559,8 @@ 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 height:", pfUI_config.chat.left, "height")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.chat, "Right chat height:", pfUI_config.chat.right, "height")
|
||||
|
||||
-- nameplates
|
||||
pfUI.gui.nameplates = pfUI.gui:CreateConfigTab("Nameplates")
|
||||
|
||||
Reference in New Issue
Block a user