mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 14:36:26 +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)
|
||||
{
|
||||
if(!partName || !partName.length) continue;
|
||||
|
||||
|
||||
const texture = this._assets.getTexture(`badgepart_${ partName }`);
|
||||
|
||||
|
||||
if(!texture) continue;
|
||||
|
||||
|
||||
const { x, y } = part.calculatePosition(texture);
|
||||
const sprite = new NitroSprite(texture);
|
||||
|
||||
|
||||
sprite.position.set(x, y);
|
||||
|
||||
|
||||
if(isFirst) sprite.tint = parseInt(this._groupPartColors.get(part.color), 16);
|
||||
|
||||
|
||||
isFirst = false;
|
||||
|
||||
|
||||
container.addChild(sprite);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user