From 0bed9188dcdcdcc189c1cc21a9342f308c7a534d Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Thu, 6 Jan 2022 17:04:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=B6=E5=9B=AD=E3=80=91=E6=91=98?= =?UTF-8?q?=E6=98=9F=E9=98=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Popup/View/GeneralPopup_HomeLandEquip.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HomeLandEquip.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HomeLandEquip.lua index 6cdc7db2b8..ec3cf710fc 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HomeLandEquip.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HomeLandEquip.lua @@ -129,11 +129,11 @@ function this:SetData() --设置消耗 local limit = EquipStrengthen[HomeLandManager.EquipData[curIndex].Id].Limit local cost = EquipStrengthen[HomeLandManager.EquipData[curIndex].Id].Cost + this.costIcon.sprite = this.spLoader:LoadSprite(GetSpriteNameByItemId(cost[1][1])) if HomeLandManager.BuildData[limit[1]].level >= limit[2] then this.costCondition.text = "" this.costIcon.gameObject:SetActive(true) this.costNum.gameObject:SetActive(true) - this.costIcon.sprite = this.spLoader:LoadSprite(GetSpriteNameByItemId(cost[1][1])) local color2 = BagManager.GetTotalItemNum(cost[1][1]) >= cost[1][2] and "#FFEED6" or "red" this.costNum.text = string.format("%s",color2,cost[1][2]) else @@ -155,6 +155,8 @@ function this:SetData() if not bool and HomeLandManager.GetAllCanUpgrade() then this.Cost:SetActive(true) this.Tips:SetActive(false) + this.costIcon.gameObject:SetActive(true) + this.costNum.gameObject:SetActive(true) this.costCondition.gameObject:SetActive(false) --突破的消耗和升级不同 local cost = EquipRankUp[HomeLandManager.levelProId].Cost