mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
21 lines
638 B
TypeScript
21 lines
638 B
TypeScript
import { _decorator, Component, Node } from 'cc';
|
|
import JNScrollViewItem from '../../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollViewItem';
|
|
import { GOnHookPet } from '../../../../../extensions/ngame/assets/ngame/message/proto';
|
|
import { PetIcon } from '../../Consts/Pet/PetIcon';
|
|
import { PetIconSelect } from '../../Consts/Pet/PetIconSelect';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('MainSreepsIcon')
|
|
export class MainSreepsIcon extends JNScrollViewItem<GOnHookPet> {
|
|
|
|
@property(PetIconSelect)
|
|
icon:PetIconSelect;
|
|
|
|
start(){
|
|
this.icon.setIcon(this.data.petTbId);
|
|
}
|
|
|
|
}
|
|
|
|
|