天赋 初步, 倒计时 添加

This commit is contained in:
2025-07-28 17:12:43 +08:00
parent b3ea965c46
commit d081695725
10 changed files with 36958 additions and 5179 deletions

View File

@@ -126,6 +126,13 @@ export class CardComp extends CCComp {
let show=this.node.getChildByName("show")
show.getChildByName("name").getChildByName("name").getComponent(Label).string=TalentList[uuid].name
this.do_card_bg_show(TalentList[uuid].quality)
this.node.getChildByName("show").getChildByName("coins").active=false
var icon_path = "game/heros/cards"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = show.getChildByName("mask").getChildByName("tal").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(TalentList[uuid].path);
});
show.getChildByName("info").getComponent(Label).string=TalentList[uuid].info
}
show_skill(uuid:number,data:any){
let show=this.node.getChildByName("show")
@@ -211,6 +218,7 @@ export class CardComp extends CCComp {
show.getChildByName("mask").getChildByName("func").active=false
show.getChildByName("mask").getChildByName("abg").active=false
show.getChildByName("mask").getChildByName("wbg").active=false
show.getChildByName("mask").getChildByName("tal").active=false
show.getChildByName("mask").getChildByName("lv1").active=false
show.getChildByName("mask").getChildByName("lv2").active=false
show.getChildByName("mask").getChildByName("lv3").active=false
@@ -225,6 +233,10 @@ export class CardComp extends CCComp {
show.getChildByName("mask").getChildByName("skill").active=true
show.getChildByName("type").getChildByName("name").getComponent(Label).string="技能"
break
case cardType.TALENT:
show.getChildByName("mask").getChildByName("tal").active=true
show.getChildByName("type").getChildByName("name").getComponent(Label).string="天赋"
break
case cardType.EQUIP:
show.getChildByName("mask").getChildByName("equip").active=true
switch(EquipInfo[this.c_uuid].type){