From d9d20b74688f8c64a6f35e9c4b7e0a0a1d1879fb Mon Sep 17 00:00:00 2001 From: guowei Date: Mon, 25 Jan 2021 16:27:28 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=B8=BF=E8=92=99=E9=98=B5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Harmony/Panel/HongMengEnvoyPanel.lua | 10 ++++++---- .../~Lua/Modules/Harmony/View/HarmonyScrllow.lua | 15 ++++++++------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Harmony/Panel/HongMengEnvoyPanel.lua b/Assets/ManagedResources/~Lua/Modules/Harmony/Panel/HongMengEnvoyPanel.lua index 9bb1817ac2..39996fbea4 100644 --- a/Assets/ManagedResources/~Lua/Modules/Harmony/Panel/HongMengEnvoyPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Harmony/Panel/HongMengEnvoyPanel.lua @@ -143,20 +143,22 @@ function HongMengEnvoyPanel:BindEvent() end local data = HarmonyManager:GetHongMengUpData() - + Gold = BagManager.GetTotalItemNum(UpViewRechargeType.Gold) + GrowthAmulet = BagManager.GetTotalItemNum(UpViewRechargeType.GrowthAmulet) if Gold >= data.LevelUp[1][2] then -- body - self.TextGold.text = string.format("%d",data.LevelUp[1][2]) + self.TextGold.text = string.format("%d",data.LevelUp[1][2]) if GrowthAmulet >= data.LevelUp[2][2] then - self.TextGrowthAmulet.text = string.format("%d",data.LevelUp[2][2]) + self.TextGrowthAmulet.text = string.format("%d",data.LevelUp[2][2]) else self.TextGrowthAmulet.text = string.format("%d",data.LevelUp[2][2]) end else self.TextGold.text = string.format("%d",data.LevelUp[1][2]) + LogGreen("变色!!!!!!!!!!!! "..data.LevelUp[1][2]) if GrowthAmulet >= data.LevelUp[2][2] then - self.TextGrowthAmulet.text = string.format("%d",data.LevelUp[2][2]) + self.TextGrowthAmulet.text = string.format("%d",data.LevelUp[2][2]) else self.TextGrowthAmulet.text = string.format("%d",data.LevelUp[2][2]) diff --git a/Assets/ManagedResources/~Lua/Modules/Harmony/View/HarmonyScrllow.lua b/Assets/ManagedResources/~Lua/Modules/Harmony/View/HarmonyScrllow.lua index c3cfc0a6f0..f47e70d5de 100644 --- a/Assets/ManagedResources/~Lua/Modules/Harmony/View/HarmonyScrllow.lua +++ b/Assets/ManagedResources/~Lua/Modules/Harmony/View/HarmonyScrllow.lua @@ -216,7 +216,7 @@ function this.SingleBoxDataShow(go,boxData,index) if HarmonyManager.RefreshOpenBoxPoint() then -- body CheckRedPointStatus(RedPointType.HongMeng_OpenBox) - print(Gold.."!@@@@@@"..boxData.PropPrice[2]) + --print(Gold.."!@@@@@@"..boxData.PropPrice[2]) if Gold > boxData.PropPrice[2] then -- body redPoint:SetActive(true) @@ -271,14 +271,15 @@ function this.SingleBoxDataShow(go,boxData,index) if HarmonyManager.hongmengHeroInfos[i].gridId ==boxData.Id then HarmonyManager.hongmengHeroInfos[i].time = 0 print("清除数据") + break end end AddImage:SetActive(true) TimerText.text = "" - - end,"取消","确认") - - + + end,"取消","确认") + this.RunTimerFun() + end) end end @@ -424,7 +425,7 @@ function this:UpdateHero(Herodata) HarmonyManager.hongmengHeroInfos[i].heroId = Herodata.dynamicId HarmonyManager.hongmengHeroInfos[i].time = 0 - + break end end @@ -517,7 +518,7 @@ function this:OnlyRefeshHeroLv() end,true,true) - + end --界面关闭时调用(用于子类重写) function this:OnClose()