mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
Fix eslint errors
This commit is contained in:
parent
5a1e4aa63d
commit
503a06e414
@ -207,20 +207,20 @@ export class BadgeImageManager implements IDisposable
|
|||||||
for(const partName of partNames)
|
for(const partName of partNames)
|
||||||
{
|
{
|
||||||
if(!partName || !partName.length) continue;
|
if(!partName || !partName.length) continue;
|
||||||
|
|
||||||
const texture = this._assets.getTexture(`badgepart_${ partName }`);
|
const texture = this._assets.getTexture(`badgepart_${ partName }`);
|
||||||
|
|
||||||
if(!texture) continue;
|
if(!texture) continue;
|
||||||
|
|
||||||
const { x, y } = part.calculatePosition(texture);
|
const { x, y } = part.calculatePosition(texture);
|
||||||
const sprite = new NitroSprite(texture);
|
const sprite = new NitroSprite(texture);
|
||||||
|
|
||||||
sprite.position.set(x, y);
|
sprite.position.set(x, y);
|
||||||
|
|
||||||
if(isFirst) sprite.tint = parseInt(this._groupPartColors.get(part.color), 16);
|
if(isFirst) sprite.tint = parseInt(this._groupPartColors.get(part.color), 16);
|
||||||
|
|
||||||
isFirst = false;
|
isFirst = false;
|
||||||
|
|
||||||
container.addChild(sprite);
|
container.addChild(sprite);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user