// Token: 0x06011809 RID: 71689 RVA: 0x00487BF8 File Offset: 0x00485DF8 public void SetHeroTrainningLevelInfo(ConfigDataHeroTrainningLevelInfo levelInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetHeroTrainningLevelInfoConfigDataHeroTrainningLevelInfo_hotfix != null) { this.m_SetHeroTrainningLevelInfoConfigDataHeroTrainningLevelInfo_hotfix.call(new object[] { this, levelInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_heroTrainningLevelInfo = levelInfo; this.m_levelText.text = levelInfo.MonsterLevel.ToString(); this.m_energyText.text = levelInfo.EnergySuccess.ToString(); this.m_levelNameText.text = levelInfo.Name; this.m_iconImage.sprite = AssetUtility.Instance.GetSprite(levelInfo.Icon); GameObjectUtility.DestroyChildren(this.m_rewardGroupGameObject); GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); List <Goods> list = new List <Goods>(); UIUtility.AppendRandomDropRewardGoodsToList(levelInfo.Drop_ID, list); if (list.Count > levelInfo.DisplayRewardCount) { list.RemoveRange(levelInfo.DisplayRewardCount, list.Count - levelInfo.DisplayRewardCount); } RewardGoodsUIController.CreateRewardGoodsList(list, this.m_rewardGroupGameObject.transform, assetInContainer, null, false, 0, true); }
// Token: 0x06014E4A RID: 85578 RVA: 0x0054AF40 File Offset: 0x00549140 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_worldEventMissionUIController.Open(); } if (this.m_eventInfo != null) { List <Goods> list = new List <Goods>(); list.AddRange(this.m_eventInfo.Reward); UIUtility.AppendRandomDropRewardGoodsToList(this.m_eventInfo.Drop_ID, list); if (list.Count > 3) { list.RemoveRange(3, list.Count - 3); } this.m_worldEventMissionUIController.SetEvent(this.m_eventInfo); this.m_worldEventMissionUIController.SetRewards(list); } }
// Token: 0x06011850 RID: 71760 RVA: 0x004889DC File Offset: 0x00486BDC protected override bool IsNeedLoadDynamicRes() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_IsNeedLoadDynamicRes_hotfix != null) { return(Convert.ToBoolean(this.m_IsNeedLoadDynamicRes_hotfix.call(new object[] { this }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; base.ClearAssetList(); if (this.m_heroTrainningInfo != null) { base.CollectAsset(this.m_heroTrainningInfo.Model); List <Goods> list = new List <Goods>(); foreach (ConfigDataHeroTrainningLevelInfo configDataHeroTrainningLevelInfo in this.m_heroTrainningInfo.m_levelInfos) { base.CollectSpriteAsset(configDataHeroTrainningLevelInfo.Icon); list.Clear(); UIUtility.AppendRandomDropRewardGoodsToList(configDataHeroTrainningLevelInfo.Drop_ID, list); foreach (Goods goods in list) { base.CollectSpriteAsset(UIUtility.GetGoodsIconName(goods.GoodsType, goods.Id)); } } } return(base.IsNeedLoadDynamicRes()); }
// Token: 0x0601486C RID: 84076 RVA: 0x00535F50 File Offset: 0x00534150 public void SetUnchartedScoreLevelInfo(ConfigDataScoreLevelInfo levelInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetUnchartedScoreLevelInfoConfigDataScoreLevelInfo_hotfix != null) { this.m_SetUnchartedScoreLevelInfoConfigDataScoreLevelInfo_hotfix.call(new object[] { this, levelInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_unchartedChallengeLevelInfo = null; this.m_unchartedScoreLevelInfo = levelInfo; this.m_uiStateController.SetToUIState("Score", false, true); GameObjectUtility.DestroyChildren(this.m_rewardGroupTransform.gameObject); Goods goods = new Goods(); goods.GoodsType = GoodsType.GoodsType_Item; goods.Id = levelInfo.UnchartedScoreInfo.ScoreItemId; goods.Count = levelInfo.ScoreBase; GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); RewardGoodsUIController.CreateRewardGoods(goods, this.m_rewardGroupTransform, assetInContainer, true, 0); List <Goods> list = new List <Goods>(); UIUtility.AppendRandomDropRewardGoodsToList(levelInfo.DropID, list); this.SetLevelInfo(levelInfo.Name, levelInfo.MonsterLevel, levelInfo.EnergySuccess, list, levelInfo.ItemDropCountDisplay, false); IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; this.m_levelNameText.text = configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_UnchartedScore_MonsterLevel); this.m_lockedText.text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Msg_AchieveLevelOpen), levelInfo.PlayerLevelMin); }
// Token: 0x06009304 RID: 37636 RVA: 0x002A6E00 File Offset: 0x002A5000 protected override bool IsNeedLoadDynamicRes() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_IsNeedLoadDynamicRes_hotfix != null) { return(Convert.ToBoolean(this.m_IsNeedLoadDynamicRes_hotfix.call(new object[] { this }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; base.ClearAssetList(); foreach (KeyValuePair <int, ConfigDataAnikiGymInfo> keyValuePair in configDataLoader.GetAllConfigDataAnikiGymInfo()) { base.CollectSpriteAsset(keyValuePair.Value.Icon); } List <Goods> list = new List <Goods>(); foreach (KeyValuePair <int, ConfigDataAnikiLevelInfo> keyValuePair2 in configDataLoader.GetAllConfigDataAnikiLevelInfo()) { ConfigDataAnikiLevelInfo value = keyValuePair2.Value; base.CollectSpriteAsset(value.Icon1); base.CollectSpriteAsset(value.Icon2); list.Clear(); UIUtility.AppendRandomDropRewardGoodsToList(value.Drop_ID, list); foreach (Goods goods in list) { base.CollectSpriteAsset(UIUtility.GetGoodsIconName(goods.GoodsType, goods.Id)); } } return(base.IsNeedLoadDynamicRes()); }
// Token: 0x0600D92C RID: 55596 RVA: 0x003AFC4C File Offset: 0x003ADE4C public void SetCooperateBattleLevelInfo(ConfigDataCooperateBattleLevelInfo levelInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetCooperateBattleLevelInfoConfigDataCooperateBattleLevelInfo_hotfix != null) { this.m_SetCooperateBattleLevelInfoConfigDataCooperateBattleLevelInfo_hotfix.call(new object[] { this, levelInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_cooperateBattleLevelInfo = levelInfo; this.m_nameText.text = levelInfo.Name; this.m_levelText.text = levelInfo.MonsterLevel.ToString(); this.m_energyText.text = levelInfo.EnergySuccess.ToString(); GameObjectUtility.DestroyChildren(this.m_rewardGroupGameObject); GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); List <Goods> list = new List <Goods>(); UIUtility.AppendRandomDropRewardGoodsToList(levelInfo.DropID, list); if (list.Count > levelInfo.ItemDropCountDisplay) { list.RemoveRange(levelInfo.ItemDropCountDisplay, list.Count - levelInfo.ItemDropCountDisplay); } RewardGoodsUIController.CreateRewardGoodsList(list, this.m_rewardGroupGameObject.transform, assetInContainer, null, false, 0, true); IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; this.m_lockedText.text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Msg_AchieveLevelOpen), levelInfo.PlayerLevelRequired); }
// Token: 0x060116E6 RID: 71398 RVA: 0x00484448 File Offset: 0x00482648 public void SetHeroPhantomLevelInfo(ConfigDataHeroPhantomLevelInfo levelInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetHeroPhantomLevelInfoConfigDataHeroPhantomLevelInfo_hotfix != null) { this.m_SetHeroPhantomLevelInfoConfigDataHeroPhantomLevelInfo_hotfix.call(new object[] { this, levelInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; this.m_heroPhantomLevelInfo = levelInfo; this.m_levelText.text = levelInfo.MonsterLevel.ToString(); this.m_energyText.text = levelInfo.EnergySuccess.ToString(); this.m_achievementCount.text = projectLPlayerContext.GetHeroPhantomLevelCompleteAchievementCount(levelInfo.ID) + "/" + levelInfo.m_achievements.Length; this.m_firstCleanUIStateController.SetToUIState((!projectLPlayerContext.IsHeroPhantomLevelFirstCleanComplete(levelInfo.ID)) ? "Normal" : "Clean", false, true); GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); GameObjectUtility.DestroyChildren(this.m_firstRewardGroupGameObject); List <Goods> list = new List <Goods>(); if (levelInfo.FirstClearDropItems.Count > 0) { list.Add(levelInfo.FirstClearDropItems[0]); } RewardGoodsUIController.CreateRewardGoodsList(list, this.m_firstRewardGroupGameObject.transform, assetInContainer, null, true, 0, true); GameObjectUtility.DestroyChildren(this.m_rewardGroupGameObject); List <Goods> list2 = new List <Goods>(); UIUtility.AppendRandomDropRewardGoodsToList(levelInfo.DropID, list2); if (list2.Count > levelInfo.DisplayRewardCount) { list2.RemoveRange(levelInfo.DisplayRewardCount, list2.Count - levelInfo.DisplayRewardCount); } RewardGoodsUIController.CreateRewardGoodsList(list2, this.m_rewardGroupGameObject.transform, assetInContainer, null, false, 0, true); }
// Token: 0x06015221 RID: 86561 RVA: 0x00557E08 File Offset: 0x00556008 public void SetScenarioInfo(ConfigDataScenarioInfo scenarioInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetScenarioInfoConfigDataScenarioInfo_hotfix != null) { this.m_SetScenarioInfoConfigDataScenarioInfo_hotfix.call(new object[] { this, scenarioInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_scenarioInfo = scenarioInfo; this.m_nameText.text = scenarioInfo.Name; this.m_levelText.text = scenarioInfo.MonsterLevel.ToString(); this.m_energyText.text = scenarioInfo.EnergySuccess.ToString(); GameObjectUtility.DestroyChildren(this.m_rewardGoodsListGameObject); List <Goods> goods = new List <Goods>(); UIUtility.AppendRandomDropRewardGoodsToList(scenarioInfo.Drop_ID, goods); GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); RewardGoodsUIController.CreateRewardGoodsList(goods, this.m_rewardGoodsListGameObject.transform, assetInContainer, null, false, 0, true); }