mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 01:46:03 +00:00
bubbles: add option to hide borders
This commit is contained in:
@@ -654,6 +654,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("chat", "global", "fadeout", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "fadetime", "300")
|
||||
pfUI:UpdateConfig("chat", "global", "scrollspeed", "1")
|
||||
pfUI:UpdateConfig("chat", "bubbles", "borders", "1")
|
||||
pfUI:UpdateConfig("chat", "bubbles", "alpha", ".75")
|
||||
|
||||
pfUI:UpdateConfig("nameplates", nil, "showhostile", "1")
|
||||
|
||||
+2
-1
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user