From 9007ed845a3e40e99da93352e93ff227794b1576 Mon Sep 17 00:00:00 2001 From: JieLing Date: Tue, 20 Oct 2020 02:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=80=8D=E9=81=A5=E6=B8=B8=E3=80=91?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=8C=E5=8A=A8=E5=8A=9B=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=BB=A1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/XiaoYao/XiaoYaoMapPanel.lua | 5 +---- .../~Lua/Modules/XiaoYao/XiaoYaoYouPanel.lua | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoMapPanel.lua b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoMapPanel.lua index 1ad6bcd015..510d38ec43 100644 --- a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoMapPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoMapPanel.lua @@ -526,7 +526,6 @@ end --刷新云游值显示栏信息 function this.UpdateYunYouVleShow() - LogGreen("BagManager.GetItemCountById(UpViewRechargeType.YunYouVle):"..BagManager.GetItemCountById(UpViewRechargeType.YunYouVle)) this.costInfo.text=string.format("%d/%d",BagManager.GetItemCountById(UpViewRechargeType.YunYouVle),PrivilegeManager.GetPrivilegeNumber(39)) end @@ -546,13 +545,11 @@ function this.ShowCountTime() this.timer = Timer.New(function () local leftTime = AutoRecoverManager.GetRecoverTime(UpViewRechargeType.YunYouVle) local curValue=BagManager.GetItemCountById(UpViewRechargeType.YunYouVle) - LogPink(curValue) - LogPink(maxValue) + this.UpdateYunYouVleShow() if curValue>=maxValue then -- 回复满了,在地图外面可以停止计时器 this.actCountTime.text = "" else - this.UpdateYunYouVleShow() this.actCountTime.text = GetTimeMaoHaoStrBySeconds(math.floor(leftTime)) end end, 1, -1, true) diff --git a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoYouPanel.lua b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoYouPanel.lua index b321547266..766e5647fc 100644 --- a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoYouPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoYouPanel.lua @@ -207,11 +207,11 @@ function this.ShowCountTime() this.timer = Timer.New(function () local leftTime = AutoRecoverManager.GetRecoverTime(UpViewRechargeType.YunYouVle) local curValue=BagManager.GetItemCountById(UpViewRechargeType.YunYouVle) + this.UpdateYunYouVleShow() if curValue>=maxValue then -- 回复满了,在地图外面可以停止计时器 this.actCountTime.text = "" else - this.UpdateYunYouVleShow() this.actCountTime.text = GetTimeMaoHaoStrBySeconds(math.floor(leftTime)) end end, 1, -1, true) @@ -219,7 +219,6 @@ function this.ShowCountTime() end --刷新云游值显示栏信息 function this.UpdateYunYouVleShow() - LogGreen("BagManager.GetItemCountById(UpViewRechargeType.YunYouVle)=============================:"..BagManager.GetItemCountById(UpViewRechargeType.YunYouVle)) this.costInfo.text=string.format("%d/%d",BagManager.GetItemCountById(UpViewRechargeType.YunYouVle),PrivilegeManager.GetPrivilegeNumber(39)) end --界面关闭时调用(用于子类重写)