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:
parent
0fde96b43b
commit
827d1ef36d
@ -62,7 +62,9 @@ export class HUDPuzzleCompleteNotification extends BaseHUDPart {
|
|||||||
this.menuBtn.innerText = T.ingame.puzzleCompletion.menuBtn;
|
this.menuBtn.innerText = T.ingame.puzzleCompletion.menuBtn;
|
||||||
dialog.appendChild(this.menuBtn);
|
dialog.appendChild(this.menuBtn);
|
||||||
|
|
||||||
this.trackClicks(this.continueBtn, this.close);
|
this.trackClicks(this.continueBtn, () => {
|
||||||
|
this.close(false);
|
||||||
|
});
|
||||||
this.trackClicks(this.menuBtn, () => {
|
this.trackClicks(this.menuBtn, () => {
|
||||||
this.close(true);
|
this.close(true);
|
||||||
});
|
});
|
||||||
@ -87,7 +89,7 @@ export class HUDPuzzleCompleteNotification extends BaseHUDPart {
|
|||||||
return this.visible;
|
return this.visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
close(toMenu = false) {
|
close(toMenu) {
|
||||||
/** @type {PuzzlePlayGameMode} */ (this.root.gameMode)
|
/** @type {PuzzlePlayGameMode} */ (this.root.gameMode)
|
||||||
.trackCompleted(this.userDidLikePuzzle, Math.round(this.timeOfCompletion))
|
.trackCompleted(this.userDidLikePuzzle, Math.round(this.timeOfCompletion))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user