dev_chengFeng
parent
00287b66a6
commit
51adf32101
|
@ -399,6 +399,9 @@ GameEvent = {
|
||||||
TaskRefresh = "TreasureOfHeaven.TaskRefresh",
|
TaskRefresh = "TreasureOfHeaven.TaskRefresh",
|
||||||
},
|
},
|
||||||
CloseUI={
|
CloseUI={
|
||||||
OnClose="CloseUI.OnClose"
|
OnClose="CloseUI.OnClose",
|
||||||
|
},
|
||||||
|
DynamicTask={
|
||||||
|
OnMissionChange = "DynamicTask.MissionChange",
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1393,10 +1393,12 @@ function this.TimeFormat()
|
||||||
if QingLong then
|
if QingLong then
|
||||||
local info = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.TreasureOfSomeBody)
|
local info = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.TreasureOfSomeBody)
|
||||||
local tempTime = info.endTime - PlayerManager.serverTime
|
local tempTime = info.endTime - PlayerManager.serverTime
|
||||||
if tempTime>= 86400 then
|
if tempTime > 86400 then
|
||||||
this.treasureOfSlText.text = TimeToDH(tempTime)
|
this.treasureOfSlText.text = TimeToDH(tempTime)
|
||||||
else
|
elseif tempTime > 0 then
|
||||||
this.treasureOfSlText.text = TimeToHMS(tempTime)
|
this.treasureOfSlText.text = TimeToHMS(tempTime)
|
||||||
|
else
|
||||||
|
this.treasureOfSl.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
this.treasureOfSl.gameObject:SetActive(false)
|
this.treasureOfSl.gameObject:SetActive(false)
|
||||||
|
@ -1551,8 +1553,10 @@ end
|
||||||
function this.RefreshActivityBtn(context)
|
function this.RefreshActivityBtn(context)
|
||||||
Log("context.type1 " .. context.type .. " " .. context.status)
|
Log("context.type1 " .. context.type .. " " .. context.status)
|
||||||
if context.type == ActivityTypeDef.TreasureOfSomeBody then
|
if context.type == ActivityTypeDef.TreasureOfSomeBody then
|
||||||
if ActTimeCtrlManager.IsQualifiled(35) then
|
if ActivityGiftManager.IsQualifiled(ActivityTypeDef.TreasureOfSomeBody) then
|
||||||
this.treasureOfSl:SetActive(context.status == 1)
|
this.treasureOfSl:SetActive(not not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureOfSomeBody))
|
||||||
|
else
|
||||||
|
this.treasureOfSl:SetActive(false)
|
||||||
end
|
end
|
||||||
elseif context.type == ActivityTypeDef.Pray then
|
elseif context.type == ActivityTypeDef.Pray then
|
||||||
this.paryGift:SetActive(context.status == 1)
|
this.paryGift:SetActive(context.status == 1)
|
||||||
|
@ -1605,7 +1609,7 @@ function this.RefreshActivityBtn(context)
|
||||||
end
|
end
|
||||||
--客户端自己Show刷新
|
--客户端自己Show刷新
|
||||||
function this.RefreshActivityShow()
|
function this.RefreshActivityShow()
|
||||||
if ActTimeCtrlManager.IsQualifiled(35) then
|
if ActivityGiftManager.IsQualifiled(ActivityTypeDef.TreasureOfSomeBody) then
|
||||||
this.treasureOfSl:SetActive(not not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureOfSomeBody))
|
this.treasureOfSl:SetActive(not not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureOfSomeBody))
|
||||||
else
|
else
|
||||||
this.treasureOfSl:SetActive(false)
|
this.treasureOfSl:SetActive(false)
|
||||||
|
|
Loading…
Reference in New Issue