英雄卡牌ui修改,todo 抽卡修改

This commit is contained in:
2025-01-18 23:53:34 +08:00
parent 55061ec37c
commit cebf09a58c
16 changed files with 4544 additions and 1714 deletions

View File

@@ -61,8 +61,7 @@ export class HeroHomeComp extends CCComp {
this.node.getChildByName("show").active=true
this.h_uuid=uuid
this.hero=HeroInfo[uuid]
this.gold_need=(getUpGoldByRange(smc.heros[uuid].lv)*smc.heros[uuid].lv)
this.chip_need=(getUpChipByLv(smc.heros[uuid].lv)-this.hero.lvexp)*smc.heros[uuid].lv
console.log("hero_show",uuid)
let skill1 = SkillSet[this.hero.sk1[0]]
let skill2 = SkillSet[this.hero.sk2[0]]
@@ -101,6 +100,8 @@ export class HeroHomeComp extends CCComp {
}
update_data(){
this.slv = Math.floor((smc.heros[this.h_uuid].lv) / 5);
this.gold_need=(getUpGoldByRange(smc.heros[this.h_uuid].lv)*smc.heros[this.h_uuid].lv)
this.chip_need=getUpChipByLv(smc.heros[this.h_uuid].lv)-this.hero.lvexp
// let slv_node=this.node.getChildByName("show").getChildByName("name").getChildByName("slv");
let lvup=this.node.getChildByName("show").getChildByName("lvup");
// let slvup=this.node.getChildByName("show").getChildByName("slvup");