mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 06:00:00 +00:00
chat: use colorpicker for background config
This commit is contained in:
+4
-4
@@ -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)
|
||||
|
||||
+3
-4
@@ -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")
|
||||
|
||||
+1
-2
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user