This commit is contained in:
2025-06-19 16:38:20 +08:00
parent 492e052d5b
commit 3582521e4e
5 changed files with 68 additions and 44 deletions

View File

@@ -112,6 +112,7 @@ export class CardComp extends CCComp {
const sprite = show.getChildByName("mask").getChildByName("skill").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(SkillSet[uuid].path);
});
show.getChildByName("info").getComponent(Label).string=SkillSet[uuid].info
}
show_hero(uuid:number){
let show=this.node.getChildByName("show")
@@ -130,6 +131,8 @@ export class CardComp extends CCComp {
const sprite = show.getChildByName("mask").getChildByName("hero").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
});
show.getChildByName("info").getComponent(Label).string=HeroInfo[uuid].info
}
show_equip(uuid:number){
let show=this.node.getChildByName("show")
@@ -140,6 +143,7 @@ export class CardComp extends CCComp {
const sprite = show.getChildByName("mask").getChildByName("equip").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(EquipInfo[uuid].uuid.toString());
});
show.getChildByName("info").getComponent(Label).string=EquipInfo[uuid].info
}
show_func(uuid:number){
let show=this.node.getChildByName("show")
@@ -150,7 +154,7 @@ export class CardComp extends CCComp {
const sprite = show.getChildByName("mask").getChildByName("func").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(SuperCards[uuid].path);
});
show.getChildByName("info").getComponent(Label).string=SuperCards[uuid].info
}
do_card_bg_show(){
this.node.getChildByName("Button").getChildByName("Label").getComponent(Label).string=this.check_heros()