mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
29 lines
584 B
TypeScript
29 lines
584 B
TypeScript
|
import { _decorator, Component, Node } from 'cc';
|
||
|
import JNScrollViewItem from '../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollViewItem';
|
||
|
import { TB } from '../../config/data/schema';
|
||
|
import { Label } from 'cc';
|
||
|
const { ccclass, property } = _decorator;
|
||
|
|
||
|
@ccclass('DungeonShowItem')
|
||
|
export class DungeonShowItem extends JNScrollViewItem<TB.TbGSysDungeon> {
|
||
|
|
||
|
//副本名称
|
||
|
@property(Label)
|
||
|
title:Label;
|
||
|
|
||
|
onInit(){
|
||
|
|
||
|
this.onUpdateView();
|
||
|
|
||
|
}
|
||
|
|
||
|
onUpdateView(){
|
||
|
|
||
|
this.title.string = this.data.name;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|