chat: use colorpicker for background config

This commit is contained in:
shagu
2016-12-10 18:38:07 +01:00
parent 0e597f46d9
commit 9b98455298
3 changed files with 8 additions and 10 deletions
+4 -4
View File
@@ -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)