HizurosWoWAddOns / Broker_Everything

A collection of module to display informations about own character, friends, guild and more on minimap or panel addons like Bazooka, ChcolateBar, TitanPanel and more.
GNU General Public License v3.0
10 stars 6 forks source link

[BUG]: Volume Module #19

Closed Spiderkeg closed 1 year ago

Spiderkeg commented 1 year ago

WoW client

WoW Retail

What happened?

A bug happened!

When clicking on the volume icon to mute sounds, I receive a CVar error.

Lua Error Message?

Message: ...nterface/AddOns/Broker_Everything/modules/volume.lua:307: attempt to call global 'BlizzardOptionsPanel_GetCVarSafe' (a nil value)
Time: Wed Nov  2 11:34:11 2022
Count: 1
Stack: ...nterface/AddOns/Broker_Everything/modules/volume.lua:307: attempt to call global 'BlizzardOptionsPanel_GetCVarSafe' (a nil value)
[string "@Interface/AddOns/Broker_Everything/modules/volume.lua"]:307: in function `func'
[string "@Interface/AddOns/Broker_Everything/shared.lua"]:1961: in function `func'
[string "@Interface/AddOns/Broker_Everything/modules.lua"]:69: in function `OnClick'
[string "@Interface/AddOns/Bazooka/Bazooka.lua"]:1417: in function <Interface/AddOns/Bazooka/Bazooka.lua:1414>

Locals: (*temporary) = nil
(*temporary) = "Sound_EnableAllSound"
(*temporary) = nil
(*temporary) = "Sound_EnableAllSound"
(*temporary) = "attempt to call global 'BlizzardOptionsPanel_GetCVarSafe' (a nil value)"
updateBroker = <function> defined @Interface/AddOns/Broker_Everything/modules/volume.lua:51
createTooltip = <function> defined @Interface/AddOns/Broker_Everything/modules/volume.lua:135
tt = Frame {
 0 = <userdata>
 parent = <table> {
 }
 OnBackdropLoaded = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:12
 GetBackdropColor = <function> defined @Interface/SharedXML/SharedTooltipTemplates.lua:191
 key = "VolumeTT"
 SetBackdropBorderColor = <function> defined @Interface/SharedXML/SharedTooltipTemplates.lua:195
 scrollChild = Frame {
 }
 ApplyBackdrop = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:22
 SetBackdrop = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:27
 ClearBackdrop = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:34
 GetBackdropBorderColor = <function> defined @Interface/SharedXML/SharedTooltipTemplates.lua:199
 GetBackdrop = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:19
 height = 355.000423
 SetBorderBlendMode = <function> defined @Interface/SharedXML/SharedTooltipTemplates.lua:203
 regularFont = GameTooltipText {
 }
 layoutType = "TooltipDefaultLayout"
 headerFont = GameTooltipHeaderText {
 }
 SetupTextureCoordinates = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:16
 GetBackdropCoordValue = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:15
 HasBackdropInfo = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:18
 mode = <table> {
 }
 scrollFrame = ScrollFrame {
 }
 elapsed = 0.044000
 GetEdgeSize = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:14
 NineSlice = Frame {
 }
 scripts = <table> {
 }
 OnHide = <function> defined @Interface/AddOns/Broker_Everything/modules/volume.lua:234
 colspans = <table> {
 }
 TooltipBackdropOnLoad = <function> defined @Interface/SharedXML/SharedTooltipTemplates.lua:172
 width = 249.000004
 lines = <table> {
 }
 labelProvider = <table> {
 }
 SetupPieceVisuals = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:17
 SetBackdropColor = <function> defined @Interface/SharedXML/SharedTooltipTemplates.lua:187
 OnBackdropSizeChanged = <function> defined @Interface/AddOns/Blizzard_Deprecated/Deprecated_9_1_5.lua:13
 columns = <table> {
 }
}

Other addons?

Bazooka in my tests.

Spiderkeg commented 1 year ago

SetCVar("Sound_EnableAllSound", GetCVar("Sound_EnableAllSound")=="0" and "1" or "0");

Seems to fix the issue.