TCX_LongZhu
DESKTOP-MMO982B\User 2025-03-25 14:19:09 +08:00
parent 09fb9c651a
commit 430b11e3d9
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ function InvadeMonsterView:InitComponent(gameObject, fightPointPassMainPanel)
this.rewardBoxTimeObj = Util.GetGameObject(this.rewardBox, "time")
this.rewardBoxTimeObj:SetActive(true)
this.rewardBoxTime = this.rewardBoxTimeObj:GetComponent("Text")
this.rewardBoxTimeProgress = Util.GetGameObject(this.rewardBox, "getBoxReward/fill"):GetComponent("Image")
this.chapterRedPoint = Util.GetGameObject(self.gameObject, "Bg/btnGroup/btnRewrdChapter/redPoint")
this.btnRewrdChapter = Util.GetGameObject(self.gameObject, "Bg/btnGroup/btnRewrdChapter")
Util.GetGameObject(self.gameObject, "Bg/btnGroup/btnRewrdChapter/Image"):GetComponent("Image").sprite=this.spLoader:LoadSprite("UI_hz_zhonghe54")
@ -158,6 +159,7 @@ function this.GetBoxShowState(hangupTime)
hangupTime = 0
end
this.rewardBoxTime.text = TimeToHM(hangupTime)
this.rewardBoxTimeProgress.fillAmount = hangupTime / (AdventureManager.adventureOffline*3600)
return state
end