2024-01-08 18:55:00 +08:00
|
|
|
import { _decorator, Component, Node } from 'cc';
|
|
|
|
import JNLayerBase from '../../../../extensions/ngame/assets/ngame/ui/base/JNLayerBase';
|
2024-01-09 04:33:21 +08:00
|
|
|
import { Sprite } from 'cc';
|
|
|
|
import { PetEquip } from '../../consts/API';
|
|
|
|
import { resources } from 'cc';
|
|
|
|
import { SpriteFrame } from 'cc';
|
2024-01-08 18:55:00 +08:00
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
2024-01-09 04:33:21 +08:00
|
|
|
//弹出锻造装备页面
|
2024-01-08 18:55:00 +08:00
|
|
|
@ccclass('PetEquipForgingPopupView')
|
|
|
|
export class PetEquipForgingPopupView extends JNLayerBase {
|
2024-01-09 04:33:21 +08:00
|
|
|
|
|
|
|
//装备展示
|
|
|
|
@property(Sprite)
|
|
|
|
icon:Sprite;
|
|
|
|
|
|
|
|
onJNLoad(info:PetEquip){
|
|
|
|
|
|
|
|
resources.load(`icon/宠物装备/${info.equipCfgId}`,SpriteFrame,(error,data) => {
|
|
|
|
this.icon.spriteFrame = data;
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-01-08 18:55:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|