This commit is contained in:
2024-12-06 08:14:47 +08:00
parent 0079dc2231
commit da7d933c47
2 changed files with 12 additions and 1 deletions

View File

@@ -50,7 +50,6 @@ export class HeroHomeComp extends CCComp {
this.node.getChildByName("name").getChildByName("value").getComponent(Label).string=hero.name
this.node.getChildByName("hero").getChildByName("lv").getComponent(Label).string = lv.toString()+"级";
let slv_node=this.node.getChildByName("hero").getChildByName("slv");
if(smc.vmdata.heros[uuid].slv>=1) {slv_node.getChildByName("s1").active=true}else{slv_node.getChildByName("s1").active=false};
if(slv>=1) {slv_node.getChildByName("s1").active=true}else{slv_node.getChildByName("s1").active=false};
if(slv>=2) {slv_node.getChildByName("s2").active=true}else{slv_node.getChildByName("s2").active=false};
if(slv>=3) {slv_node.getChildByName("s3").active=true}else{slv_node.getChildByName("s3").active=false};