ui 整体修改

This commit is contained in:
walkpan
2024-12-22 23:52:22 +08:00
parent 177bc0e346
commit 26c673e95b
18 changed files with 8067 additions and 9817 deletions

View File

@@ -52,15 +52,15 @@ export class HeroSelectComp extends CCComp {
show_bg(val:boolean){
this.node.getChildByName("show").active=val
}
update_data(event: string, args: any){
if(args.uuid!=this.h_uuid) return
update_data(){
let slv = this.node.getChildByName("slv")
this.node.getChildByName("lv").getComponent(Label).string=smc.heros[this.h_uuid].lv.toString()+"级"
if(smc.heros[this.h_uuid].slv>=1) {slv.getChildByName("s1").active=true} else {slv.getChildByName("s1").active=false};
if(smc.heros[this.h_uuid].slv>=2) {slv.getChildByName("s2").active=true} else {slv.getChildByName("s2").active=false};
if(smc.heros[this.h_uuid].slv>=3) {slv.getChildByName("s3").active=true} else {slv.getChildByName("s3").active=false};
if(smc.heros[this.h_uuid].slv>=4) {slv.getChildByName("s4").active=true} else {slv.getChildByName("s4").active=false};
if(smc.heros[this.h_uuid].slv>=5) {slv.getChildByName("s5").active=true} else {slv.getChildByName("s5").active=false};
if(smc.heros[this.h_uuid].slv==0){
slv.active=false
}else{
slv.active=true
slv.getChildByName("slv").getComponent(Label).string=smc.heros[this.h_uuid].slv.toString()
}
}
/** 全局消息逻辑处理 */
// private onHandler(event: string, args: any) {