bubbles: switch to already existing cvar

This commit is contained in:
shagu
2018-03-04 23:22:44 +01:00
parent d1fe3940d4
commit 55e2d06834
3 changed files with 2 additions and 7 deletions
-2
View File
@@ -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")
-3
View File
@@ -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
View File
@@ -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