提交开宝箱

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-01-11 02:46:36 +08:00
parent d0d80bb9ad
commit 05777799a3
51 changed files with 7665 additions and 2502 deletions

View File

@@ -0,0 +1,27 @@
import { _decorator, Component, Node } from 'cc';
import { GAttribute } from '../../../../consts/entity/EntityData';
import JNScrollViewItem from '../../../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollViewItem';
import { Label } from 'cc';
import { TD } from '../../../../App';
const { ccclass, property } = _decorator;
@ccclass('PetEquipAttributeItem')
export class PetEquipAttributeItem extends JNScrollViewItem<GAttribute> {
//名称
@property(Label)
attributeName:Label;
//值
@property(Label)
attributeValue:Label;
onInit(){
this.attributeName.string = TD.TbGAttribute.get(this.data.id).name+":";
this.attributeValue.string = `${this.data.value}`;
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "8ce0b443-3cd1-4546-8143-b6f7c2b745f4",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,33 @@
import { _decorator, Component, Node } from 'cc';
import { PetEquip } from '../../../../consts/API';
import JNScrollView from '../../../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollView';
const { ccclass, property } = _decorator;
@ccclass('PetEquipAttributeView')
export class PetEquipAttributeView extends Component {
//基础属性
@property(JNScrollView)
baseView:JNScrollView;
//高级属性
@property(JNScrollView)
highView:JNScrollView;
info:PetEquip;
set(info:PetEquip){
this.info = info;
this.onUpdateView();
}
onUpdateView(){
this.baseView.refreshData(this.info.equipBaseAttributes);
this.highView.refreshData(this.info.equipHighAttributes);
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "c8ab3e3c-fa86-45d0-876d-efdf461d9347",
"files": [],
"subMetas": {},
"userData": {}
}