From 345280e794c4c9c3085292102e81e00dee1f92bf Mon Sep 17 00:00:00 2001 From: DT Date: Thu, 24 May 2018 10:13:27 +1000 Subject: [PATCH] Fix for sounds not playing - Sounds for placing a bar, bonus bar & destroying a bar --- ButtonForge/Util.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ButtonForge/Util.lua b/ButtonForge/Util.lua index 7313ebf..f2a72d2 100644 --- a/ButtonForge/Util.lua +++ b/ButtonForge/Util.lua @@ -767,8 +767,7 @@ function Util.NewBar(Left, Top, BarSave) BarSave["Left"] = Left; BarSave["Top"] = Top; table.insert(ButtonForgeSave.Bars, BarSave); - PlaySoundFile("Sound\\Interface\\Pickup\\Putdownsmallmetal.Wav"); - --PlaySoundFile("Sound\\Item\\Weapons\\Mace2h\\2hmacehitplate1a.Wav"); + PlaySound(177, "Master"); end if (#(Util.InactiveBars) > 0) then @@ -805,7 +804,7 @@ function Util.NewBonusBar(Left, Top) BarSave["ButtonsLocked"] = true; BarSave["GridAlwaysOn"] = false; table.insert(ButtonForgeSave.Bars, BarSave); - PlaySoundFile("Sound\\Interface\\Pickup\\Putdownsmallmetal.Wav"); + PlaySound(177, "Master"); return Util.NewBar(Left, Top, BarSave); end @@ -819,6 +818,7 @@ function Util.DeallocateBar(Value) table.insert(Util.InactiveBars, Value); local Left, Top = Value.ControlFrame:GetLeft(), Value.ControlFrame:GetTop(); Util.RefreshTab(Left, Top); + PlaySound(6523, "Master"); end function Util.DetachBar(Value)