mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
chat: add option to disable frame shadows
This commit is contained in:
@@ -568,6 +568,7 @@ function pfUI:LoadConfig()
|
|||||||
pfUI:UpdateConfig("chat", "global", "tabdock", "0")
|
pfUI:UpdateConfig("chat", "global", "tabdock", "0")
|
||||||
pfUI:UpdateConfig("chat", "global", "tabmouse", "0")
|
pfUI:UpdateConfig("chat", "global", "tabmouse", "0")
|
||||||
pfUI:UpdateConfig("chat", "global", "chatflash", "1")
|
pfUI:UpdateConfig("chat", "global", "chatflash", "1")
|
||||||
|
pfUI:UpdateConfig("chat", "global", "frameshadow", "1")
|
||||||
pfUI:UpdateConfig("chat", "global", "custombg", "0")
|
pfUI:UpdateConfig("chat", "global", "custombg", "0")
|
||||||
pfUI:UpdateConfig("chat", "global", "background", ".2,.2,.2,.5")
|
pfUI:UpdateConfig("chat", "global", "background", ".2,.2,.2,.5")
|
||||||
pfUI:UpdateConfig("chat", "global", "border", ".4,.4,.4,.5")
|
pfUI:UpdateConfig("chat", "global", "border", ".4,.4,.4,.5")
|
||||||
|
|||||||
+7
-2
@@ -33,7 +33,9 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function ()
|
|||||||
pfUI.chat.left:SetScript("OnShow", function() pfUI.chat:RefreshChat() end)
|
pfUI.chat.left:SetScript("OnShow", function() pfUI.chat:RefreshChat() end)
|
||||||
UpdateMovable(pfUI.chat.left)
|
UpdateMovable(pfUI.chat.left)
|
||||||
CreateBackdrop(pfUI.chat.left, default_border, nil, .8)
|
CreateBackdrop(pfUI.chat.left, default_border, nil, .8)
|
||||||
CreateBackdropShadow(pfUI.chat.left)
|
if C.chat.global.frameshadow == "1" then
|
||||||
|
CreateBackdropShadow(pfUI.chat.left)
|
||||||
|
end
|
||||||
|
|
||||||
if C.chat.global.custombg == "1" then
|
if C.chat.global.custombg == "1" then
|
||||||
local r, g, b, a = strsplit(",", C.chat.global.background)
|
local r, g, b, a = strsplit(",", C.chat.global.background)
|
||||||
@@ -205,7 +207,10 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function ()
|
|||||||
pfUI.chat.right:SetScript("OnShow", function() pfUI.chat:RefreshChat() end)
|
pfUI.chat.right:SetScript("OnShow", function() pfUI.chat:RefreshChat() end)
|
||||||
UpdateMovable(pfUI.chat.right)
|
UpdateMovable(pfUI.chat.right)
|
||||||
CreateBackdrop(pfUI.chat.right, default_border, nil, .8)
|
CreateBackdrop(pfUI.chat.right, default_border, nil, .8)
|
||||||
CreateBackdropShadow(pfUI.chat.right)
|
if C.chat.global.frameshadow == "1" then
|
||||||
|
CreateBackdropShadow(pfUI.chat.right)
|
||||||
|
end
|
||||||
|
|
||||||
if C.chat.global.custombg == "1" then
|
if C.chat.global.custombg == "1" then
|
||||||
local r, g, b, a = strsplit(",", C.chat.global.background)
|
local r, g, b, a = strsplit(",", C.chat.global.background)
|
||||||
pfUI.chat.right.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
|
pfUI.chat.right.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
|
||||||
|
|||||||
@@ -2027,6 +2027,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
|||||||
CreateConfig(nil, T["Enable Chat Dock Background"], C.chat.global, "tabdock", "checkbox")
|
CreateConfig(nil, T["Enable Chat Dock Background"], C.chat.global, "tabdock", "checkbox")
|
||||||
CreateConfig(nil, T["Only Show Chat Dock On Mouseover"], C.chat.global, "tabmouse", "checkbox")
|
CreateConfig(nil, T["Only Show Chat Dock On Mouseover"], C.chat.global, "tabmouse", "checkbox")
|
||||||
CreateConfig(nil, T["Enable Chat Tab Flashing"], C.chat.global, "chatflash", "checkbox")
|
CreateConfig(nil, T["Enable Chat Tab Flashing"], C.chat.global, "chatflash", "checkbox")
|
||||||
|
CreateConfig(nil, T["Enable Frame Shadow"], C.chat.global, "frameshadow", "checkbox")
|
||||||
CreateConfig(nil, T["Enable Custom Colors"], C.chat.global, "custombg", "checkbox")
|
CreateConfig(nil, T["Enable Custom Colors"], C.chat.global, "custombg", "checkbox")
|
||||||
CreateConfig(nil, T["Chat Background Color"], C.chat.global, "background", "color")
|
CreateConfig(nil, T["Chat Background Color"], C.chat.global, "background", "color")
|
||||||
CreateConfig(nil, T["Chat Border Color"], C.chat.global, "border", "color")
|
CreateConfig(nil, T["Chat Border Color"], C.chat.global, "border", "color")
|
||||||
|
|||||||
Reference in New Issue
Block a user