[青龙秘宝]=================屏蔽青龙秘宝活动时间,倒计时显示
parent
32ac61db17
commit
cd209bdb76
|
@ -29,7 +29,9 @@ function this:InitComponent(gameObject)
|
|||
--Content
|
||||
this.progress = Util.GetGameObject(this.gameObject, "bg/topBar/progress/Image"):GetComponent("Image")
|
||||
this.scoreText = Util.GetGameObject(this.gameObject, "bg/topBar/progress/Text"):GetComponent("Text")
|
||||
|
||||
this.remainTimeObj = Util.GetGameObject(this.gameObject, "bg/topBar/remainTime")
|
||||
--屏蔽青龍密保時間顯示
|
||||
this.remainTimeObj:SetActive(false)
|
||||
this.remainTime = Util.GetGameObject(this.gameObject, "bg/topBar/remainTime/Text"):GetComponent("Text")
|
||||
this.box = Util.GetGameObject(this.gameObject, "topBar/box")
|
||||
this.extra = Util.GetGameObject(this.gameObject, "topBar/extraBox")
|
||||
|
@ -106,8 +108,10 @@ function this:OnShow(_parent,...)
|
|||
-- this.timeTxt.text = "活动时间:"
|
||||
-- this.time.text = startTime.."-"..endTime
|
||||
this.time.text = string.format(Language[10584].." %s-%s",startTime,endTime)
|
||||
this.remainTime.text = Language[10470]..TimeToDHMS(tonumber(endTimeScale) - GetTimeStamp())
|
||||
this:ShowTime(endTimeScale)
|
||||
--屏蔽青龙密保活动时间倒计时显示
|
||||
this.time.gameObject:SetActive(false)
|
||||
--this.remainTime.text = Language[10470]..TimeToDHMS(tonumber(endTimeScale) - GetTimeStamp())
|
||||
--this:ShowTime(endTimeScale)
|
||||
this.refresh(true,true)
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue