bubbles: add option to hide borders

This commit is contained in:
Pizzahawaiii
2022-12-26 10:34:38 +01:00
committed by GitHub
parent f8a25a4fbd
commit 2cae10c82a
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ pfUI:RegisterModule("bubbles", "vanilla:tbc", function ()
local r,g,b,a = f.text:GetTextColor()
f.frame.text:SetText(f.text:GetText())
f.frame.text:SetTextColor(r,g,b,a)
f.frame.backdrop:SetBackdropBorderColor(r,g,b,a)
local border_alpha = C.chat.bubbles.borders == "1" and a or 0
f.frame.backdrop:SetBackdropBorderColor(r,g,b,border_alpha)
end
function pfUI.bubbles:ScanBubbles()
+1
View File
@@ -2167,6 +2167,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Mousewheel Scroll Speed"], C.chat.global, "scrollspeed")
CreateConfig(nil, T["Enable Chat Bubbles"], "CVAR", "chatBubbles", "checkbox")
CreateConfig(nil, T["Enable Party Chat Bubbles"], "CVAR", "chatBubblesParty", "checkbox")
CreateConfig(nil, T["Enable Chat Bubble Borders"], C.chat.bubbles, "borders", "checkbox")
CreateConfig(nil, T["Chat Bubble Transparency"], C.chat.bubbles, "alpha")
end)