This commit is contained in:
2025-07-04 15:47:50 +08:00
parent 352792b76f
commit d0e411ac12
3 changed files with 5853 additions and 3720 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -207,19 +207,19 @@ export class EquipSkillComp extends CCComp {
this.boxs.getChildByName("skill1").getChildByName("get").active =true this.boxs.getChildByName("skill1").getChildByName("get").active =true
this.boxs.getChildByName("skill1").getChildByName("light").active=true this.boxs.getChildByName("skill1").getChildByName("light").active=true
this.boxs.getChildByName("skill1").getChildByName("tip").active =true this.boxs.getChildByName("skill1").getChildByName("tip").active =true
this.boxs.getChildByName("skill1").getChildByName("tip").getComponent(Label).string="可购买" this.boxs.getChildByName("skill1").getChildByName("tip").getComponent(Label).string="学习"
} }
if(this.skill2.uuid==0&&this.skill1.uuid!=0){ if(this.skill2.uuid==0&&this.skill1.uuid!=0){
this.boxs.getChildByName("skill2").getChildByName("get").active =true this.boxs.getChildByName("skill2").getChildByName("get").active =true
this.boxs.getChildByName("skill2").getChildByName("light").active=true this.boxs.getChildByName("skill2").getChildByName("light").active=true
this.boxs.getChildByName("skill2").getChildByName("tip").active =true this.boxs.getChildByName("skill2").getChildByName("tip").active =true
this.boxs.getChildByName("skill2").getChildByName("tip").getComponent(Label).string="可购买" this.boxs.getChildByName("skill2").getChildByName("tip").getComponent(Label).string="学习"
} }
if(this.skill3.uuid==0&&this.skill1.uuid!=0&&this.skill2.uuid!=0){ if(this.skill3.uuid==0&&this.skill1.uuid!=0&&this.skill2.uuid!=0){
this.boxs.getChildByName("skill3").getChildByName("get").active =true this.boxs.getChildByName("skill3").getChildByName("get").active =true
this.boxs.getChildByName("skill3").getChildByName("light").active=true this.boxs.getChildByName("skill3").getChildByName("light").active=true
this.boxs.getChildByName("skill3").getChildByName("tip").active =true this.boxs.getChildByName("skill3").getChildByName("tip").active =true
this.boxs.getChildByName("skill3").getChildByName("tip").getComponent(Label).string="可购买" this.boxs.getChildByName("skill3").getChildByName("tip").getComponent(Label).string="学习"
} }
} }

View File

@@ -308,21 +308,21 @@ export class EquipsComp extends Component {
this.boxs.getChildByName("weapon").getChildByName("get").active =true this.boxs.getChildByName("weapon").getChildByName("get").active =true
this.boxs.getChildByName("weapon").getChildByName("light").active=true this.boxs.getChildByName("weapon").getChildByName("light").active=true
this.boxs.getChildByName("weapon").getChildByName("tip").active=true this.boxs.getChildByName("weapon").getChildByName("tip").active=true
this.boxs.getChildByName("weapon").getChildByName("tip").getComponent(Label).string="购买" this.boxs.getChildByName("weapon").getChildByName("tip").getComponent(Label).string="购买"
} }
if(this.armor.uuid==0){ if(this.armor.uuid==0){
this.boxs.getChildByName("armor").getChildByName("get").active =true this.boxs.getChildByName("armor").getChildByName("get").active =true
this.boxs.getChildByName("armor").getChildByName("light").active=true this.boxs.getChildByName("armor").getChildByName("light").active=true
this.boxs.getChildByName("armor").getChildByName("tip").active=true this.boxs.getChildByName("armor").getChildByName("tip").active=true
this.boxs.getChildByName("armor").getChildByName("tip").getComponent(Label).string="购买" this.boxs.getChildByName("armor").getChildByName("tip").getComponent(Label).string="购买"
} }
if(this.accessory.uuid==0){ if(this.accessory.uuid==0){
this.boxs.getChildByName("accessory").getChildByName("get").active =true this.boxs.getChildByName("accessory").getChildByName("get").active =true
this.boxs.getChildByName("accessory").getChildByName("light").active=true this.boxs.getChildByName("accessory").getChildByName("light").active=true
this.boxs.getChildByName("accessory").getChildByName("tip").active=true this.boxs.getChildByName("accessory").getChildByName("tip").active=true
this.boxs.getChildByName("accessory").getChildByName("tip").getComponent(Label).string="购买" this.boxs.getChildByName("accessory").getChildByName("tip").getComponent(Label).string="购买"
} }
} }
@@ -330,15 +330,12 @@ export class EquipsComp extends Component {
this.boxs.getChildByName("weapon").getChildByName("get").active =false this.boxs.getChildByName("weapon").getChildByName("get").active =false
this.boxs.getChildByName("weapon").getChildByName("light").active=false this.boxs.getChildByName("weapon").getChildByName("light").active=false
this.boxs.getChildByName("weapon").getChildByName("tip").active=false this.boxs.getChildByName("weapon").getChildByName("tip").active=false
this.boxs.getChildByName("weapon").getChildByName("icon").active =false
this.boxs.getChildByName("armor").getChildByName("get").active =false this.boxs.getChildByName("armor").getChildByName("get").active =false
this.boxs.getChildByName("armor").getChildByName("light").active=false this.boxs.getChildByName("armor").getChildByName("light").active=false
this.boxs.getChildByName("armor").getChildByName("tip").active=false this.boxs.getChildByName("armor").getChildByName("tip").active=false
this.boxs.getChildByName("armor").getChildByName("icon").active =false
this.boxs.getChildByName("accessory").getChildByName("get").active =false this.boxs.getChildByName("accessory").getChildByName("get").active =false
this.boxs.getChildByName("accessory").getChildByName("light").active=false this.boxs.getChildByName("accessory").getChildByName("light").active=false
this.boxs.getChildByName("accessory").getChildByName("tip").active=false this.boxs.getChildByName("accessory").getChildByName("tip").active=false
this.boxs.getChildByName("accessory").getChildByName("icon").active =false
} }
private show_equip_change(e:string){ private show_equip_change(e:string){