mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 19:50:02 +00:00
bubbles: switch to already existing cvar
This commit is contained in:
@@ -565,8 +565,6 @@ 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", "chat", "1")
|
||||
pfUI:UpdateConfig("chat", "bubbles", "party", "1")
|
||||
pfUI:UpdateConfig("chat", "bubbles", "alpha", ".75")
|
||||
|
||||
pfUI:UpdateConfig("nameplates", nil, "use_unitfonts", "0")
|
||||
|
||||
@@ -2,9 +2,6 @@ pfUI:RegisterModule("bubbles", function ()
|
||||
|
||||
local alpha = tonumber(C.chat.bubbles.alpha)
|
||||
|
||||
SetCVar("chatBubbles", tonumber(C.chat.bubbles.chat))
|
||||
SetCVar("chatBubblesParty", tonumber(C.chat.bubbles.party))
|
||||
|
||||
pfUI.bubbles = CreateFrame("Frame", "pfChatBubbles", UIParent)
|
||||
pfUI.bubbles:RegisterEvent("CHAT_MSG_SAY")
|
||||
pfUI.bubbles:RegisterEvent("CHAT_MSG_YELL")
|
||||
|
||||
+2
-2
@@ -1108,8 +1108,8 @@ pfUI:RegisterModule("gui", function ()
|
||||
CreateConfig(nil, this, T["Enable Chat Fade"], C.chat.global, "fadeout", "checkbox")
|
||||
CreateConfig(nil, this, T["Seconds Before Chat Fade"], C.chat.global, "fadetime")
|
||||
CreateConfig(nil, this, T["Mousewheel Scroll Speed"], C.chat.global, "scrollspeed")
|
||||
CreateConfig(nil, this, T["Enable Chat Bubbles"], C.chat.bubbles, "chat", "checkbox")
|
||||
CreateConfig(nil, this, T["Enable Party Chat Bubbles"], C.chat.bubbles, "party", "checkbox")
|
||||
CreateConfig(nil, this, T["Enable Chat Bubbles"], "CVAR", "chatBubbles", "checkbox")
|
||||
CreateConfig(nil, this, T["Enable Party Chat Bubbles"], "CVAR", "chatBubblesParty", "checkbox")
|
||||
CreateConfig(nil, this, T["Chat Bubble Transparency"], C.chat.bubbles, "alpha")
|
||||
this.setup = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user