dev_chengFeng
jiaoyangna 2020-09-22 14:43:22 +08:00 committed by JieLing
parent 00287b66a6
commit 51adf32101
2 changed files with 13 additions and 6 deletions

View File

@ -399,6 +399,9 @@ GameEvent = {
TaskRefresh = "TreasureOfHeaven.TaskRefresh",
},
CloseUI={
OnClose="CloseUI.OnClose"
OnClose="CloseUI.OnClose",
},
DynamicTask={
OnMissionChange = "DynamicTask.MissionChange",
}
}

View File

@ -1393,10 +1393,12 @@ function this.TimeFormat()
if QingLong then
local info = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.TreasureOfSomeBody)
local tempTime = info.endTime - PlayerManager.serverTime
if tempTime>= 86400 then
if tempTime > 86400 then
this.treasureOfSlText.text = TimeToDH(tempTime)
else
elseif tempTime > 0 then
this.treasureOfSlText.text = TimeToHMS(tempTime)
else
this.treasureOfSl.gameObject:SetActive(false)
end
else
this.treasureOfSl.gameObject:SetActive(false)
@ -1551,8 +1553,10 @@ end
function this.RefreshActivityBtn(context)
Log("context.type1 " .. context.type .. " " .. context.status)
if context.type == ActivityTypeDef.TreasureOfSomeBody then
if ActTimeCtrlManager.IsQualifiled(35) then
this.treasureOfSl:SetActive(context.status == 1)
if ActivityGiftManager.IsQualifiled(ActivityTypeDef.TreasureOfSomeBody) then
this.treasureOfSl:SetActive(not not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureOfSomeBody))
else
this.treasureOfSl:SetActive(false)
end
elseif context.type == ActivityTypeDef.Pray then
this.paryGift:SetActive(context.status == 1)
@ -1605,7 +1609,7 @@ function this.RefreshActivityBtn(context)
end
--客户端自己Show刷新
function this.RefreshActivityShow()
if ActTimeCtrlManager.IsQualifiled(35) then
if ActivityGiftManager.IsQualifiled(ActivityTypeDef.TreasureOfSomeBody) then
this.treasureOfSl:SetActive(not not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureOfSomeBody))
else
this.treasureOfSl:SetActive(false)