mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交开宝箱
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "3f2e01bd-60eb-4e48-a26c-06b4a91283e6",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -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}`;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "8ce0b443-3cd1-4546-8143-b6f7c2b745f4",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "c8ab3e3c-fa86-45d0-876d-efdf461d9347",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user