diff --git a/src/core/utils/index.js b/src/core/utils/index.js index 0d8a7ff..8ca64ce 100644 --- a/src/core/utils/index.js +++ b/src/core/utils/index.js @@ -173,6 +173,7 @@ /** * Skips the hello message of renderers that are created after this is run. * + * @memberof PIXI.utils */ export function skipHello() { diff --git a/src/core/utils/index.js b/src/core/utils/index.js index 0d8a7ff..8ca64ce 100644 --- a/src/core/utils/index.js +++ b/src/core/utils/index.js @@ -173,6 +173,7 @@ /** * Skips the hello message of renderers that are created after this is run. * + * @memberof PIXI.utils */ export function skipHello() { diff --git a/src/deprecation.js b/src/deprecation.js index 6b82c4d..9d63a5e 100644 --- a/src/deprecation.js +++ b/src/deprecation.js @@ -618,3 +618,27 @@ return core.CanvasTinter.canUseMultiply; }; + +let saidHello = true; + +/** + * @name PIXI.utils._saidHello + * @type {boolean} + * @see PIXI.utils.skipHello + * @deprecated since 4.1.0 + */ +Object.defineProperty(core.utils, '_saidHello', { + set(bool) + { + if (bool) + { + warn('PIXI.utils._saidHello is deprecated, please use PIXI.utils.skipHello()'); + this.skipHello(); + } + saidHello = bool; + }, + get() + { + return saidHello; + }, +});