mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 17:07:43 +00:00
Merge pull request #6722 from samme/feature/setTilesetImage-warnings
Improve the warnings in addTilesetImage()
This commit is contained in:
commit
e0e3de008a
1 changed files with 2 additions and 2 deletions
|
@ -400,7 +400,7 @@ var Tilemap = new Class({
|
|||
|
||||
if (!this.scene.sys.textures.exists(key))
|
||||
{
|
||||
console.warn('Invalid Tileset Image: ' + key);
|
||||
console.warn('Texture key "%s" not found', key);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -410,7 +410,7 @@ var Tilemap = new Class({
|
|||
|
||||
if (index === null && this.format === Formats.TILED_JSON)
|
||||
{
|
||||
console.warn('No data found for Tileset: ' + tilesetName);
|
||||
console.warn('Tilemap has no tileset "%s". Its tilesets are %o', tilesetName, this.tilesets);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue