diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/View/InvadeMonsterView.lua b/Assets/ManagedResources/~Lua/Modules/Fight/View/InvadeMonsterView.lua index 9617aa7d6e..c01b6f3ef2 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/View/InvadeMonsterView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/View/InvadeMonsterView.lua @@ -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