From 7413dc4e6e23d90625b055854d9fcae2b738286d Mon Sep 17 00:00:00 2001 From: panw Date: Fri, 4 Jul 2025 15:57:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E5=A4=87=20=E5=8D=87=E7=BA=A7=20?= =?UTF-8?q?=E5=88=B6=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/script/game/map/EquipsComp.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/assets/script/game/map/EquipsComp.ts b/assets/script/game/map/EquipsComp.ts index fec3cb62..bba29ecf 100644 --- a/assets/script/game/map/EquipsComp.ts +++ b/assets/script/game/map/EquipsComp.ts @@ -309,22 +309,30 @@ export class EquipsComp extends Component { this.boxs.getChildByName("weapon").getChildByName("light").active=true this.boxs.getChildByName("weapon").getChildByName("tip").active=true this.boxs.getChildByName("weapon").getChildByName("tip").getComponent(Label).string="购买" - + }else{ + this.boxs.getChildByName("weapon").getChildByName("change").active =true + this.boxs.getChildByName("weapon").getChildByName("light").active=true + this.boxs.getChildByName("weapon").getChildByName("tip").active=true + this.boxs.getChildByName("weapon").getChildByName("tip").getComponent(Label).string="升级" } if(this.armor.uuid==0){ this.boxs.getChildByName("armor").getChildByName("get").active =true this.boxs.getChildByName("armor").getChildByName("light").active=true this.boxs.getChildByName("armor").getChildByName("tip").active=true this.boxs.getChildByName("armor").getChildByName("tip").getComponent(Label).string="购买" - + }else{ + this.boxs.getChildByName("armor").getChildByName("change").active =true + this.boxs.getChildByName("armor").getChildByName("light").active=true + this.boxs.getChildByName("armor").getChildByName("tip").active=true + this.boxs.getChildByName("armor").getChildByName("tip").getComponent(Label).string="升级" } - if(this.accessory.uuid==0){ + if(this.accessory.uuid==0 &&smc.vmdata.mission_data.equip_stone_max >= 160){ this.boxs.getChildByName("accessory").getChildByName("get").active =true this.boxs.getChildByName("accessory").getChildByName("light").active=true this.boxs.getChildByName("accessory").getChildByName("tip").active=true this.boxs.getChildByName("accessory").getChildByName("tip").getComponent(Label).string="购买" } - } + } private hide_equip_get(e:any,data:string){ this.boxs.getChildByName("weapon").getChildByName("get").active =false