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

@@ -9029,6 +9029,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "3e/itbSONFe7T5S/iJLg76", "fileId": "3e/itbSONFe7T5S/iJLg76",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -9579,6 +9581,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "59mmXN1s9PZp+Vepx+N3kW", "fileId": "59mmXN1s9PZp+Vepx+N3kW",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -10129,6 +10133,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "a4BeRm8YtFZYB5dzfCHcwp", "fileId": "a4BeRm8YtFZYB5dzfCHcwp",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -10679,6 +10685,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "e2yQcUKYRGma28xsO/H7qI", "fileId": "e2yQcUKYRGma28xsO/H7qI",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -11229,6 +11237,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "a7zzOlVplGTIJWYVzkn1yT", "fileId": "a7zzOlVplGTIJWYVzkn1yT",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -16733,6 +16743,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "39DfWGRfVNILoTYMUIXAuv", "fileId": "39DfWGRfVNILoTYMUIXAuv",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {

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("name").getChildByName("value").getComponent(Label).string=hero.name
this.node.getChildByName("hero").getChildByName("lv").getComponent(Label).string = lv.toString()+"级"; this.node.getChildByName("hero").getChildByName("lv").getComponent(Label).string = lv.toString()+"级";
let slv_node=this.node.getChildByName("hero").getChildByName("slv"); 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>=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>=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}; if(slv>=3) {slv_node.getChildByName("s3").active=true}else{slv_node.getChildByName("s3").active=false};