diff --git a/modules/chat.lua b/modules/chat.lua index 8044bdbc..e3b79fa4 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -14,8 +14,8 @@ pfUI:RegisterModule("chat", function () pfUI.utils:UpdateMovable(pfUI.chat.left) pfUI.utils:CreateBackdrop(pfUI.chat.left, default_border, nil, true) if pfUI_config.chat.global.custombg == "1" then - local r, g, b = strsplit(",", pfUI_config.chat.global.bgcolor) - pfUI.chat.left.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(pfUI_config.chat.global.bgtransp)) + local r, g, b, a = strsplit(",", pfUI_config.chat.global.background) + pfUI.chat.left.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a)) end pfUI.chat.left.panelTop = CreateFrame("Frame", "leftChatPanelTop", pfUI.chat.left) @@ -166,8 +166,8 @@ pfUI:RegisterModule("chat", function () pfUI.utils:UpdateMovable(pfUI.chat.right) pfUI.utils:CreateBackdrop(pfUI.chat.right, default_border, nil, true) if pfUI_config.chat.global.custombg == "1" then - local r, g, b = strsplit(",", pfUI_config.chat.global.bgcolor) - pfUI.chat.right.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(pfUI_config.chat.global.bgtransp)) + local r, g, b, a = strsplit(",", pfUI_config.chat.global.background) + pfUI.chat.right.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a)) end pfUI.chat.right.panelTop = CreateFrame("Frame", "rightChatPanelTop", pfUI.chat.right) diff --git a/modules/config.lua b/modules/config.lua index 37514324..26b5495c 100644 --- a/modules/config.lua +++ b/modules/config.lua @@ -8,8 +8,8 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("global", nil, "font_default", "arial") pfUI:UpdateConfig("global", nil, "font_square", "homespun") pfUI:UpdateConfig("global", nil, "font_combat", "diediedie") - pfUI:UpdateConfig("appearance", "border", "background", "0, 0, 0, 1") - pfUI:UpdateConfig("appearance", "border", "color", "0.3, 0.3, 0.3, 1") + pfUI:UpdateConfig("appearance", "border", "background", "0,0,0,1") + pfUI:UpdateConfig("appearance", "border", "color", "0.3,0.3,0.3,1") pfUI:UpdateConfig("appearance", "border", "default", "3") pfUI:UpdateConfig("appearance", "border", "actionbars", "-1") pfUI:UpdateConfig("appearance", "border", "unitframes", "-1") @@ -90,8 +90,7 @@ function pfUI:LoadConfig() 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") + pfUI:UpdateConfig("chat", "global", "background", ".2,.2,.2,.5") pfUI:UpdateConfig("nameplates", nil, "showcastbar", "1") pfUI:UpdateConfig("nameplates", nil, "spellname", "0") pfUI:UpdateConfig("nameplates", nil, "showdebuffs", "0") diff --git a/modules/gui.lua b/modules/gui.lua index 11a0ff3e..1c858129 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -764,8 +764,7 @@ pfUI:RegisterModule("gui", function () 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") + pfUI.gui:CreateConfig(pfUI.gui.chat, "Background color:", pfUI_config.chat.global, "background", "color") -- nameplates pfUI.gui.nameplates = pfUI.gui:CreateConfigTab("Nameplates")