【逍遥游】修复行动力不会恢复满的问题

dev_chengFeng
JieLing 2020-10-20 02:36:12 +08:00
parent 534ee58f6a
commit 9007ed845a
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -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
--界面关闭时调用(用于子类重写)