天宫秘宝到时间踢出去

ZhangBiao 2020-09-10 18:25:39 +08:00
parent dd4c91a46c
commit 156e81ab7b
2 changed files with 4 additions and 3 deletions

View File

@ -476,7 +476,7 @@ function this.RemainTimeDown()
end
end
function this.RefreshPanelShowByState()
if ExpeditionManager.ExpeditionPanelIsOpen == 1 and UIManager.IsOpen(UIName.ExpeditionMainPanel) then --not UIManager.IsOpen(UIName.BattlePanel) then
if ExpeditionManager.ExpeditionPanelIsOpen == 1 and (UIManager.IsOpen(UIName.ExpeditionMainPanel) or UIManager.IsOpen(UIName.TreasureOfHeavenPanel)) then --not UIManager.IsOpen(UIName.BattlePanel) then
PlayerManager.carbonType = 1
if ExpeditionManager.ExpeditionState == 2 then
UIManager.OpenPanel(UIName.CarbonTypePanelV2)

View File

@ -237,7 +237,7 @@ function TreasureOfHeavenPanel:ShowTime()
self.localTimer:Stop()
self.localTimer = nil
end
local t = TreasureOfHeavenManger.resetTime
local t = TreasureOfHeavenManger.resetTime-300
local time
self.localTimer = Timer.New(function()
time = t - GetTimeStamp()
@ -245,7 +245,8 @@ function TreasureOfHeavenPanel:ShowTime()
time = 0
t = TreasureOfHeavenManger.resetTime
treasureState = nil
TreasureOfHeavenPanel:refresh()
-- TreasureOfHeavenPanel:refresh()-不刷新了,直接踢出去
ExpeditionManager.RefreshPanelShowByState()
end
this.time.text=TimeToDHMS(time)
end,1,-1,true)