界面调整 去掉技能大页面
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { _decorator, Component, Label, Node, resources, Sprite, SpriteAtlas } from 'cc';
|
||||
import { HeroInfo } from '../common/config/heroSet';
|
||||
import { SkillSet } from '../common/config/SkillSet';
|
||||
import { oops } from '../../../../extensions/oops-plugin-framework/assets/core/Oops';
|
||||
import { UIID } from '../common/config/GameUIConfig';
|
||||
import { Items } from '../common/config/Items';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('SChipComp')
|
||||
@@ -15,9 +18,13 @@ export class SChipComp extends Component {
|
||||
update(deltaTime: number) {
|
||||
|
||||
}
|
||||
show_info(){
|
||||
if(this.node.parent.name=="reward") return
|
||||
oops.gui.open(UIID.ItemInfo, {uuid:this.h_uuid,type:1});
|
||||
}
|
||||
|
||||
update_data(uuid:number,num:number=0){
|
||||
|
||||
this.h_uuid = uuid;
|
||||
if(num > 0){
|
||||
this.node.getChildByName("num").getComponent(Label).string = num.toString();
|
||||
}else{
|
||||
@@ -32,7 +39,7 @@ export class SChipComp extends Component {
|
||||
// console.log("update_data",atlas,sprite)
|
||||
sprite.spriteFrame = atlas.getSpriteFrame(SkillSet[uuid].path);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user