|
@@ -142,15 +142,7 @@ export class widget_base extends Component {
|
|
|
// gameManager.initUiBaseAtt(this.icon,event_data_change_one_item_status.att)
|
|
|
let att_res = event_data_change_one_item_status.att.res
|
|
|
if(att_res.length > 0) {
|
|
|
- assetManager.loadRemote<ImageAsset>(att_res,(err,imageAsset2)=> {
|
|
|
- if(!err && imageAsset2) {
|
|
|
- const texture = new Texture2D()
|
|
|
- texture.image = imageAsset2
|
|
|
- let spFrame2 = new SpriteFrame()
|
|
|
- spFrame2.texture = texture
|
|
|
- this.icon.getComponent(Sprite).spriteFrame = spFrame2
|
|
|
- }
|
|
|
- })
|
|
|
+ tools.loadUrl(att_res,this.icon.getComponent(Sprite))
|
|
|
}
|
|
|
}
|
|
|
break;
|