* Called when external resource loaded successfully * 外部资源加载成功时调用
(textureId: string | number, width: number, height: number)
| 450 | * 外部资源加载成功时调用 |
| 451 | */ |
| 452 | protected onExternalLoadSuccess(textureId: string | number, width: number, height: number): void { |
| 453 | this._content.texture = textureId; |
| 454 | this._content.scale9Grid = null; |
| 455 | this._content.scaleByTile = false; |
| 456 | this.sourceWidth = width; |
| 457 | this.sourceHeight = height; |
| 458 | this.updateLayout(); |
| 459 | } |
| 460 | |
| 461 | /** |
| 462 | * Called when external resource failed to load |
no test coverage detected