From 1933ffa80953fe323c9aa11d7e46b4f66b74c555 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Thu, 3 Jun 2021 19:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A5=9E=E5=B0=86=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E3=80=91=E6=BB=A1=E7=BA=A7=E8=BF=98=E6=98=BE=E7=A4=BA=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua index 13d690fab2..d05256a6c6 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua @@ -60,6 +60,7 @@ function RoleInfoLayout:InitComponent() this.itemPre=Util.GetGameObject(self.gameObject,"upLv/itemPre") this.itemGrid=Util.GetGameObject(self.gameObject,"upLv/itemGrid") this.upLvBtn=Util.GetGameObject(self.gameObject,"upLvBtn") + this.upLvBtnRedPoint=Util.GetGameObject(self.gameObject,"upLvBtn/redPoint") this.upLvTrigger = Util.GetEventTriggerListener(this.upLvBtn) @@ -221,11 +222,13 @@ function this:UpdateHeroUpLvAndBreakMaterialShow() if curHeroData.lv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then this.noUpLvText:SetActive(true) this.upLv:SetActive(false) + this.upLvBtn:SetActive(false) this.upLvBtn:GetComponent("RectTransform").anchoredPosition = Vector2.New(322.3, -90) else Util.ClearChild(this.itemGrid.transform) this.noUpLvText:SetActive(false) this.upLv:SetActive(true) + this.upLvBtn:SetActive(true) this.upLvBtn:GetComponent("RectTransform").anchoredPosition = Vector2.New(322.3, -90) isUpLvMaterials=true for i = 1, #costItemList do @@ -268,6 +271,7 @@ function this:UpdateHeroUpLvAndBreakMaterialShow() if isGongMing then this.gongmingText:SetActive(true) this.upLv:SetActive(false) + this.upLvBtn:SetActive(false) this.noUpLvText:SetActive(false) this.upLvBtn:GetComponent("RectTransform").anchoredPosition = Vector2.New(2098, -42.00134 ) return