Merge pull request #6722 from samme/feature/setTilesetImage-warnings

Improve the warnings in addTilesetImage()
This commit is contained in:
Robert Kowalski 2024-01-29 12:38:05 -05:00 committed by GitHub
commit e0e3de008a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}