mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix pause sound bug
This commit is contained in:
parent
21bd713203
commit
33a85c97a1
2 changed files with 1 additions and 2 deletions
|
|
@ -284,6 +284,7 @@ class MarbleGame {
|
||||||
Console.log("Game paused");
|
Console.log("Game paused");
|
||||||
world.setCursorLock(false);
|
world.setCursorLock(false);
|
||||||
@:privateAccess world.playGui.setGuiVisibility(false);
|
@:privateAccess world.playGui.setGuiVisibility(false);
|
||||||
|
AudioManager.playSound(ResourceLoader.getAudio('data/sound/level_text.wav').resource);
|
||||||
showPauseUI();
|
showPauseUI();
|
||||||
} else {
|
} else {
|
||||||
if (world._ready) {
|
if (world._ready) {
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@ class ExitGameDlg extends GuiImage {
|
||||||
var res = ResourceLoader.getImage("data/ui/xbox/BG_fadeOutSoftEdge.png").resource.toTile();
|
var res = ResourceLoader.getImage("data/ui/xbox/BG_fadeOutSoftEdge.png").resource.toTile();
|
||||||
super(res);
|
super(res);
|
||||||
|
|
||||||
AudioManager.playSound(ResourceLoader.getResource('data/sound/level_text.wav', ResourceLoader.getAudio, this.soundResources));
|
|
||||||
|
|
||||||
this.horizSizing = Width;
|
this.horizSizing = Width;
|
||||||
this.vertSizing = Height;
|
this.vertSizing = Height;
|
||||||
this.position = new Vector();
|
this.position = new Vector();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue