From 827d1ef36d79a36b648b175c5f3392bf3a4fe5cc Mon Sep 17 00:00:00 2001 From: Sense101 <67970865+Sense101@users.noreply.github.com> Date: Tue, 11 May 2021 17:24:15 +0100 Subject: [PATCH] fixed continue button to not go back to menu --- src/js/game/hud/parts/puzzle_complete_notification.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/game/hud/parts/puzzle_complete_notification.js b/src/js/game/hud/parts/puzzle_complete_notification.js index 34d600bb..b0235417 100644 --- a/src/js/game/hud/parts/puzzle_complete_notification.js +++ b/src/js/game/hud/parts/puzzle_complete_notification.js @@ -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(() => {