// Token: 0x06009309 RID: 37641 RVA: 0x002A7340 File Offset: 0x002A5540 protected override void UpdateView() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateView_hotfix != null) { this.m_UpdateView_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (base.IsOpeningUI()) { this.m_anikiUIController.Open(); } ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; this.m_playerResourceUIController.UpdatePlayerResource(); this.m_anikiUIController.SetDailyRewardCount(projectLPlayerContext.GetAnikiDailyRewardRestCount(), projectLPlayerContext.GetDailyBonusMaxNums(GameFunctionType.GameFunctionType_AnikiGym)); this.m_anikiUIController.ClearAnikiGymListItems(); foreach (KeyValuePair <int, ConfigDataAnikiGymInfo> keyValuePair in configDataLoader.GetAllConfigDataAnikiGymInfo()) { this.m_anikiUIController.AddAnikiGymListItem(keyValuePair.Value, projectLPlayerContext.IsAnikiGymOpened(keyValuePair.Key)); } if (this.m_anikiGymInfo != null) { this.m_anikiUIController.SetSelectedAnikiGym(this.m_anikiGymInfo); this.UpdateAnikiLevels(this.m_anikiGymInfo); } }
// Token: 0x06011855 RID: 71765 RVA: 0x00488E5C File Offset: 0x0048705C protected override void UpdateView() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateView_hotfix != null) { this.m_UpdateView_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (base.IsOpeningUI()) { this.m_heroTrainningUIController.Open(); } ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; this.m_playerResourceUIController.UpdatePlayerResource(); this.m_heroTrainningUIController.SetDailyRewardCount(projectLPlayerContext.GetHeroTrainingDailyRewardRestCount(), projectLPlayerContext.GetDailyBonusMaxNums(GameFunctionType.GameFunctionType_HeroTrainning)); if (this.m_heroTrainningInfo != null) { this.m_heroTrainningUIController.SetHeroTrainning(this.m_heroTrainningInfo); this.m_heroTrainningUIController.ClearHeroTrainningLevelListItems(); this.m_heroTrainningUIController.AddAllHeroTrainningLevelListItems(this.m_heroTrainningInfo.m_levelInfos); } }
// Token: 0x060146B9 RID: 83641 RVA: 0x0053082C File Offset: 0x0052EA2C public void SetCooperateBattleInfo(ConfigDataCooperateBattleInfo cooperateBattleInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetCooperateBattleInfoConfigDataCooperateBattleInfo_hotfix != null) { this.m_SetCooperateBattleInfoConfigDataCooperateBattleInfo_hotfix.call(new object[] { this, cooperateBattleInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_cooperateBattleInfo = cooperateBattleInfo; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; bool flag = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_CooperateBattle) && projectLPlayerContext.IsCooperateBattleOpened(cooperateBattleInfo.ID); this.m_uiStateController.SetToUIState((!flag) ? "Grey" : "Normal", false, true); DateTime serverTime = projectLPlayerContext.GetServerTime(); DateTime dateTime = DateTime.MaxValue; DateTime dateTime2 = DateTime.MaxValue; int num = cooperateBattleInfo.OpenDaysOfWeek.BinarySearch(serverTime.Date.DayOfWeek); if (num >= 0) { dateTime = serverTime.StartOfWeek(serverTime.Date.DayOfWeek).Add(cooperateBattleInfo.OpenTimeSpan); dateTime2 = serverTime.StartOfWeek(serverTime.Date.DayOfWeek).Add(cooperateBattleInfo.CloseTimeSpan); } else { num = ~num; if (num < cooperateBattleInfo.OpenDaysOfWeek.Count) { dateTime = serverTime.StartOfWeek(cooperateBattleInfo.OpenDaysOfWeek[num]).Add(cooperateBattleInfo.OpenTimeSpan); dateTime2 = serverTime.StartOfWeek(cooperateBattleInfo.OpenDaysOfWeek[num]).Add(cooperateBattleInfo.CloseTimeSpan); } else { dateTime = serverTime.StartOfWeek(cooperateBattleInfo.OpenDaysOfWeek[num % cooperateBattleInfo.OpenDaysOfWeek.Count]).Add(cooperateBattleInfo.OpenTimeSpan).AddDays(7.0); dateTime2 = serverTime.StartOfWeek(cooperateBattleInfo.OpenDaysOfWeek[num % cooperateBattleInfo.OpenDaysOfWeek.Count]).Add(cooperateBattleInfo.CloseTimeSpan).AddDays(7.0); } } Text timeText = this.m_timeText; string text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Uncharted_LimitTime), new object[] { dateTime.Month, dateTime.Day, dateTime.Hour, dateTime.Minute, dateTime2.Month, dateTime2.Day, dateTime2.Hour, dateTime2.Minute }); this.m_timeGreyText.text = text; timeText.text = text; int cooperateBattleDailyChallengeNums = projectLPlayerContext.GetCooperateBattleDailyChallengeNums(cooperateBattleInfo.ID); int dailyBonusMaxNums = projectLPlayerContext.GetDailyBonusMaxNums(GameFunctionType.GameFunctionType_CooperateBattle); UIUtility.SetDailyRewardCount(this.m_numberText, cooperateBattleDailyChallengeNums, dailyBonusMaxNums); Image bgImage = this.m_bgImage; Sprite sprite = AssetUtility.Instance.GetSprite(cooperateBattleInfo.Image); this.m_bgGreyImage.sprite = sprite; bgImage.sprite = sprite; }