From 96bae29e62a17079606e307bdead1ff2bd846601 Mon Sep 17 00:00:00 2001 From: samme Date: Sun, 21 Jul 2024 07:36:24 -0700 Subject: [PATCH] Pass pauseDuration 0 for manual resume --- src/core/Game.js | 2 +- src/core/events/RESUME_EVENT.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Game.js b/src/core/Game.js index b1b7c3dbd..ae9ac59f5 100644 --- a/src/core/Game.js +++ b/src/core/Game.js @@ -650,7 +650,7 @@ var Game = new Class({ if (wasPaused) { - this.events.emit(Events.RESUME); + this.events.emit(Events.RESUME, 0); } }, diff --git a/src/core/events/RESUME_EVENT.js b/src/core/events/RESUME_EVENT.js index ba359a03b..90e4596e5 100644 --- a/src/core/events/RESUME_EVENT.js +++ b/src/core/events/RESUME_EVENT.js @@ -13,6 +13,6 @@ * @type {string} * @since 3.0.0 * - * @param {number} pauseDuration - The duration, in ms, that the game was paused for. + * @param {number} pauseDuration - The duration, in ms, that the game was paused for, or 0 if {@link Phaser.Game#resume} was called. */ module.exports = 'resume';