mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-12-14 00:39:16 +00:00
提交
This commit is contained in:
28
JisolGameCocos/assets/script/ui/Dungeon/DungeonShowItem.ts
Normal file
28
JisolGameCocos/assets/script/ui/Dungeon/DungeonShowItem.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user