1
0
Bifurcation 0

Fix for sounds not playing

- Sounds for placing a bar, bonus bar & destroying a bar
Cette révision appartient à :
DT 2018-05-24 10:13:27 +10:00
Parent d7fa014be4
révision 345280e794

Voir le fichier

@ -767,8 +767,7 @@ function Util.NewBar(Left, Top, BarSave)
BarSave["Left"] = Left; BarSave["Left"] = Left;
BarSave["Top"] = Top; BarSave["Top"] = Top;
table.insert(ButtonForgeSave.Bars, BarSave); table.insert(ButtonForgeSave.Bars, BarSave);
PlaySoundFile("Sound\\Interface\\Pickup\\Putdownsmallmetal.Wav"); PlaySound(177, "Master");
--PlaySoundFile("Sound\\Item\\Weapons\\Mace2h\\2hmacehitplate1a.Wav");
end end
if (#(Util.InactiveBars) > 0) then if (#(Util.InactiveBars) > 0) then
@ -805,7 +804,7 @@ function Util.NewBonusBar(Left, Top)
BarSave["ButtonsLocked"] = true; BarSave["ButtonsLocked"] = true;
BarSave["GridAlwaysOn"] = false; BarSave["GridAlwaysOn"] = false;
table.insert(ButtonForgeSave.Bars, BarSave); table.insert(ButtonForgeSave.Bars, BarSave);
PlaySoundFile("Sound\\Interface\\Pickup\\Putdownsmallmetal.Wav"); PlaySound(177, "Master");
return Util.NewBar(Left, Top, BarSave); return Util.NewBar(Left, Top, BarSave);
end end
@ -819,6 +818,7 @@ function Util.DeallocateBar(Value)
table.insert(Util.InactiveBars, Value); table.insert(Util.InactiveBars, Value);
local Left, Top = Value.ControlFrame:GetLeft(), Value.ControlFrame:GetTop(); local Left, Top = Value.ControlFrame:GetLeft(), Value.ControlFrame:GetTop();
Util.RefreshTab(Left, Top); Util.RefreshTab(Left, Top);
PlaySound(6523, "Master");
end end
function Util.DetachBar(Value) function Util.DetachBar(Value)