mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
The loadPlayerPhoto
function in the Instant Games plugin now listens for the updated Loader event correctly, causing the photocomplete
event to fire properly.
This commit is contained in:
parent
61008f4eda
commit
61f74a2fc6
2 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,8 @@
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
* The `loadPlayerPhoto` function in the Instant Games plugin now listens for the updated Loader event correctly, causing the `photocomplete` event to fire properly.
|
||||||
|
|
||||||
### Examples and TypeScript
|
### Examples and TypeScript
|
||||||
|
|
||||||
Thanks to the following for helping with the Phaser 3 Examples and TypeScript definitions, either by reporting errors, or even better, fixing them:
|
Thanks to the following for helping with the Phaser 3 Examples and TypeScript definitions, either by reporting errors, or even better, fixing them:
|
||||||
|
|
|
@ -687,7 +687,7 @@ var FacebookInstantGamesPlugin = new Class({
|
||||||
|
|
||||||
scene.load.image(key, this.playerPhotoURL);
|
scene.load.image(key, this.playerPhotoURL);
|
||||||
|
|
||||||
scene.load.once('filecomplete_image_' + key, function ()
|
scene.load.once('filecomplete-image-' + key, function ()
|
||||||
{
|
{
|
||||||
this.emit('photocomplete', key);
|
this.emit('photocomplete', key);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue