2019-01-17 11:54:41 +00:00
|
|
|
/**
|
2024-02-19 17:12:18 +00:00
|
|
|
* @author Richard Davey <rich@phaser.io>
|
|
|
|
* @copyright 2013-2024 Phaser Studio Inc.
|
2019-05-10 15:15:04 +00:00
|
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
2019-01-17 11:54:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Texture Load Error Event.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2019-01-17 11:54:41 +00:00
|
|
|
* This event is dispatched by the Texture Manager when a texture it requested to load failed.
|
|
|
|
* This only happens when base64 encoded textures fail. All other texture types are loaded via the Loader Plugin.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2019-01-17 11:54:41 +00:00
|
|
|
* Listen to this event from within a Scene using: `this.textures.on('onerror', listener)`.
|
|
|
|
*
|
|
|
|
* @event Phaser.Textures.Events#ERROR
|
2022-09-21 21:01:03 +00:00
|
|
|
* @type {string}
|
2019-02-12 11:37:58 +00:00
|
|
|
* @since 3.0.0
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2019-01-17 11:54:41 +00:00
|
|
|
* @param {string} key - The key of the Texture that failed to load into the Texture Manager.
|
|
|
|
*/
|
|
|
|
module.exports = 'onerror';
|