1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

fixed continue button to not go back to menu

This commit is contained in:
Sense101 2021-05-11 17:24:15 +01:00
parent 0fde96b43b
commit 827d1ef36d

View File

@ -62,7 +62,9 @@ export class HUDPuzzleCompleteNotification extends BaseHUDPart {
this.menuBtn.innerText = T.ingame.puzzleCompletion.menuBtn;
dialog.appendChild(this.menuBtn);
this.trackClicks(this.continueBtn, this.close);
this.trackClicks(this.continueBtn, () => {
this.close(false);
});
this.trackClicks(this.menuBtn, () => {
this.close(true);
});
@ -87,7 +89,7 @@ export class HUDPuzzleCompleteNotification extends BaseHUDPart {
return this.visible;
}
close(toMenu = false) {
close(toMenu) {
/** @type {PuzzlePlayGameMode} */ (this.root.gameMode)
.trackCompleted(this.userDidLikePuzzle, Math.round(this.timeOfCompletion))
.then(() => {