This commit is contained in:
2024-12-05 17:03:57 +08:00
parent a554c3dc0a
commit 1a9d2679b5
2 changed files with 1196 additions and 1148 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -45,6 +45,13 @@ export class HeroHomeComp extends CCComp {
sprite.spriteFrame = atlas.getSpriteFrame(smc.heros[uuid].path);
});
this.node.getChildByName("name").getChildByName("value").getComponent(Label).string=smc.heros[uuid].name
this.node.getChildByName("hero").getChildByName("lv").getComponent(Label).string = smc.vmdata.heros[uuid].lv.toString()+"级";
let slv=this.node.getChildByName("hero").getChildByName("slv");
if(smc.vmdata.heros[uuid].slv>=1) {slv.getChildByName("s1").active=true}else{slv.getChildByName("s1").active=false};
if(smc.vmdata.heros[uuid].slv>=2) {slv.getChildByName("s2").active=true}else{slv.getChildByName("s2").active=false};
if(smc.vmdata.heros[uuid].slv>=3) {slv.getChildByName("s3").active=true}else{slv.getChildByName("s3").active=false};
if(smc.vmdata.heros[uuid].slv>=4) {slv.getChildByName("s4").active=true}else{slv.getChildByName("s4").active=false};
if(smc.vmdata.heros[uuid].slv>=5) {slv.getChildByName("s5").active=true}else{slv.getChildByName("s5").active=false};
}
lv_up(){
console.log("lvup h_uuid:",this.h_uuid)