// Token: 0x060148BB RID: 84155 RVA: 0x00536E4C File Offset: 0x0053504C public void SetUnchartedScoreRewardGroupInfo(ConfigDataUnchartedScoreRewardGroupInfo rewardInfo, string scoreName) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetUnchartedScoreRewardGroupInfoConfigDataUnchartedScoreRewardGroupInfoString_hotfix != null) { this.m_SetUnchartedScoreRewardGroupInfoConfigDataUnchartedScoreRewardGroupInfoString_hotfix.call(new object[] { this, rewardInfo, scoreName }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_nameText.text = rewardInfo.Name; this.m_scoreNameText.text = scoreName; this.m_scoreText.text = rewardInfo.Score.ToString(); GameObjectUtility.DestroyChildren(this.m_rewardGroupTransform.gameObject); GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); List <Goods> list = new List <Goods>(rewardInfo.RewardList); if (list.Count > rewardInfo.RewardDisplayCount) { list.RemoveRange(rewardInfo.RewardDisplayCount, list.Count - rewardInfo.RewardDisplayCount); } RewardGoodsUIController.CreateRewardGoodsList(list, this.m_rewardGroupTransform, assetInContainer, null, true, 0, true); }
// 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: 0x06013166 RID: 78182 RVA: 0x004DE5CC File Offset: 0x004DC7CC public void SetReward(Goods goods) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetRewardGoods_hotfix != null) { this.m_SetRewardGoods_hotfix.call(new object[] { this, goods }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_goodsType = goods.GoodsType; this.m_goodsId = goods.Id; this.m_goodsCount = goods.Count; this.m_itemInfo = null; if (goods.GoodsType == GoodsType.GoodsType_Item) { IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; this.m_itemInfo = configDataLoader.GetConfigDataItemInfo(goods.Id); } GameObjectUtility.DestroyChildren(this.m_signItemGoodsDummy); GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); RewardGoodsUIController.CreateRewardGoods(goods, this.m_signItemGoodsDummy.transform, assetInContainer, true, 0); }
// Token: 0x0600A02F RID: 41007 RVA: 0x002D3144 File Offset: 0x002D1344 public void SetRealTimePVPRankBonusInfo(ConfigDataRealTimePVPRankingRewardInfo rankRewardInfo, GameObject rewardGoodPrefab) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetRealTimePVPRankBonusInfoConfigDataRealTimePVPRankingRewardInfoGameObject_hotfix != null) { this.m_SetRealTimePVPRankBonusInfoConfigDataRealTimePVPRankingRewardInfoGameObject_hotfix.call(new object[] { this, rankRewardInfo, rewardGoodPrefab }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_nameText.text = rankRewardInfo.Name; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataMailInfo configDataMailInfo = configDataLoader.GetConfigDataMailInfo(rankRewardInfo.RankingRewardMailTemplateId); GameObjectUtility.DestroyChildren(this.m_rewardGroupGameObject); if (configDataMailInfo != null && configDataMailInfo.Attachments.Count > 0) { RewardGoodsUIController.CreateRewardGoodsList(configDataMailInfo.Attachments, this.m_rewardGroupGameObject.transform, rewardGoodPrefab, null, true, 0, true); this.m_noRewardGameObject.SetActive(false); } else { this.m_noRewardGameObject.SetActive(true); } }
// Token: 0x0601486E RID: 84078 RVA: 0x005361B8 File Offset: 0x005343B8 private void SetLevelInfo(string name, int monsterLevel, int energy, List <Goods> rewardList, int rewardDisplayCount, bool showRewardGoodCount) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetLevelInfoStringInt32Int32List ` 1Int32Boolean_hotfix != null) { this.m_SetLevelInfoStringInt32Int32List ` 1Int32Boolean_hotfix.call(new object[] { this, name, monsterLevel, energy, rewardList, rewardDisplayCount, showRewardGoodCount }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_levelText.text = monsterLevel.ToString(); this.m_energyText.text = energy.ToString(); if (rewardList.Count > rewardDisplayCount) { rewardList.RemoveRange(rewardDisplayCount, rewardList.Count - rewardDisplayCount); } GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); RewardGoodsUIController.CreateRewardGoodsList(rewardList, this.m_rewardGroupTransform, assetInContainer, null, showRewardGoodCount, 0, true); }
// Token: 0x06012509 RID: 75017 RVA: 0x004B47CC File Offset: 0x004B29CC public void UpdateRaffleRewardItemInfo(int level, List <RaffleItem> itemList, HashSet <int> drawedRaffleIds) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateRaffleRewardItemInfoInt32List ` 1HashSet ` 1_hotfix != null) { this.m_UpdateRaffleRewardItemInfoInt32List ` 1HashSet ` 1_hotfix.call(new object[] { this, level, itemList, drawedRaffleIds }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.LevelText.text = this.GetLvNameByLevel(level); this.UIStateCtrl.SetToUIState(this.GetLvStateNameByLevel(level), false, true); List <Goods> list = new List <Goods>(); foreach (RaffleItem raffleItem in itemList) { Goods item = new Goods { Count = raffleItem.ItemCount, GoodsType = raffleItem.GoodsType, Id = raffleItem.ItemID }; list.Add(item); } GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); this.m_goodsCtrlList.Clear(); GameObjectUtility.DestroyChildren(this.GoodsItemRoot.gameObject); RewardGoodsUIController.CreateRewardGoodsList(list, this.GoodsItemRoot, assetInContainer, this.m_goodsCtrlList, true, 0, true); this.UpdateRewardItemGotState(itemList, drawedRaffleIds); }
// 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: 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: 0x0600F6A3 RID: 63139 RVA: 0x0041363C File Offset: 0x0041183C public void Init(Rewards reward, int totalRewardCurrency) { ConfigDataGuildMassiveCombatRewardsInfo configDataGuildMassiveCombatRewardsInfo = this.m_configDataLoader.GetConfigDataGuildMassiveCombatRewardsInfo(reward.Id); this.m_percentText.text = string.Format("{0}%", reward.Percent); int num = Mathf.CeilToInt((float)(totalRewardCurrency * reward.Percent) * 0.01f); this.m_currencyText.text = string.Format("{0}+", num); GameObject prefab = this.m_resourceContainer.GetAsset("RewardGoods") as GameObject; RewardGoodsUIController.CreateRewardGoodsList(configDataGuildMassiveCombatRewardsInfo.BonusItems, this.m_rewardGroup.transform, prefab, null, true, 0, true); }
// Token: 0x0600D65F RID: 54879 RVA: 0x003A6B54 File Offset: 0x003A4D54 public static RewardGoodsUIController CreateRewardGoods(Goods g, Transform parent, GameObject prefab, bool showCount = true, int alignType = 0) { if (prefab == null) { return(null); } GameObject go = UnityEngine.Object.Instantiate <GameObject>(prefab, parent, false); RewardGoodsUIController rewardGoodsUIController = GameObjectUtility.AddControllerToGameObject <RewardGoodsUIController>(go); rewardGoodsUIController.SetReward(g, alignType, true); rewardGoodsUIController.ShowCount(showCount); return(rewardGoodsUIController); }
// Token: 0x0600F69B RID: 63131 RVA: 0x004133D8 File Offset: 0x004115D8 public void Init(ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo rewardInfo) { this.m_rewardInfo = rewardInfo; this.m_integralText.text = rewardInfo.Points.ToString(); GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = this.m_playerContext.GetGuildPlayerMassiveCombatInfo(); if (rewardInfo.Points < guildPlayerMassiveCombatInfo.Points) { this.m_itemAnimation.SetToUIState("Got", false, true); } GameObject prefab = this.m_resourceContainer.GetAsset("RewardGoods") as GameObject; RewardGoodsUIController.CreateRewardGoodsList(rewardInfo.RewardItems, this.m_rewardContent.transform, prefab, null, true, 0, true); }
// Token: 0x0600D660 RID: 54880 RVA: 0x003A6B94 File Offset: 0x003A4D94 public static void CreateRewardGoodsList(List <Goods> goods, Transform parent, GameObject prefab, List <RewardGoodsUIController> ctrlList = null, bool showCount = true, int alignType = 0, bool isNeedAutoClose = true) { if (prefab == null) { return; } RewardGoodsUIController.m_isNeedAutoClose = isNeedAutoClose; prefab.SetActive(true); foreach (Goods g in goods) { RewardGoodsUIController rewardGoodsUIController = RewardGoodsUIController.CreateRewardGoods(g, parent, prefab, showCount, alignType); if (rewardGoodsUIController != null && ctrlList != null) { ctrlList.Add(rewardGoodsUIController); } } }
// Token: 0x0600CAB2 RID: 51890 RVA: 0x0037E4C4 File Offset: 0x0037C6C4 public void SetTowerFloor(ConfigDataTowerFloorInfo floorInfo, ConfigDataTowerLevelInfo levelInfo, GameObject rewardGoodsPrefab) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetTowerFloorConfigDataTowerFloorInfoConfigDataTowerLevelInfoGameObject_hotfix != null) { this.m_SetTowerFloorConfigDataTowerFloorInfoConfigDataTowerLevelInfoGameObject_hotfix.call(new object[] { this, floorInfo, levelInfo, rewardGoodsPrefab }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; GameObjectUtility.DestroyChildren(this.m_rewardGroupTransform.gameObject); RewardGoodsUIController.CreateRewardGoodsList(floorInfo.RewardList, this.m_rewardGroupTransform, rewardGoodsPrefab, null, true, 0, true); this.CreateSpineGraphic(levelInfo.LevelRes); }
// Token: 0x0601207C RID: 73852 RVA: 0x004A6A9C File Offset: 0x004A4C9C private void SetMissionInfo() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetMissionInfo_hotfix != null) { this.m_SetMissionInfo_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_titleText.text = this.m_mission.Config.Title; this.m_descText.text = this.m_mission.Config.Desc; GameObjectUtility.DestroyChildren(this.m_rewardListGo); GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardItem"); RewardGoodsUIController.CreateRewardGoodsList(this.m_mission.Config.Reward, this.m_rewardListGo.transform, assetInContainer, null, true, 0, false); int missionMaxProcess = this.playerCtx.GetMissionMaxProcess(this.m_mission); if (this.m_isMissionCompleted) { this.m_countText.text = UIUtility.AddColorTag(this.playerCtx.GetMissionCompleteProcess(this.m_mission) + "/" + missionMaxProcess, UIUtility.MyGreenColor); } else { this.m_countText.text = UIUtility.AddColorTag(this.playerCtx.GetMissionCompleteProcess(this.m_mission) + string.Empty, Color.red) + "/" + missionMaxProcess; } CommonUIStateController component = base.gameObject.GetComponent <CommonUIStateController>(); if (this.m_isMissionFinished) { component.SetToUIState("Finished", false, true); } else if (this.m_isMissionCompleted) { component.SetToUIState("Get", false, true); } else { component.SetToUIState("PorgressBar", false, true); this.m_progressImg.fillAmount = (float)this.playerCtx.GetMissionCompleteProcess(this.m_mission) / (float)missionMaxProcess; } this.m_achievementIconGo.SetActive(this.m_mission.Config.MissionColumn == MissionColumnType.MissionColumnType_Achievements); }
// Token: 0x0600CAE5 RID: 51941 RVA: 0x0037EC74 File Offset: 0x0037CE74 public void SetReward(List <Goods> rewardList, string name) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetRewardList ` 1String_hotfix != null) { this.m_SetRewardList ` 1String_hotfix.call(new object[] { this, rewardList, name }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_nameText.text = name; GameObjectUtility.DestroyChildren(this.m_rewardGroupTransform.gameObject); GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); RewardGoodsUIController.CreateRewardGoodsList(rewardList, this.m_rewardGroupTransform, assetInContainer, null, true, 0, true); }
// Token: 0x0600C871 RID: 51313 RVA: 0x00377DA0 File Offset: 0x00375FA0 public void SetTowerLevel(ConfigDataTowerFloorInfo floorInfo, ConfigDataTowerLevelInfo levelInfo, ConfigDataTowerBattleRuleInfo ruleInfo, ConfigDataTowerBonusHeroGroupInfo bonusHeroGroupInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetTowerLevelConfigDataTowerFloorInfoConfigDataTowerLevelInfoConfigDataTowerBattleRuleInfoConfigDataTowerBonusHeroGroupInfo_hotfix != null) { this.m_SetTowerLevelConfigDataTowerFloorInfoConfigDataTowerLevelInfoConfigDataTowerBattleRuleInfoConfigDataTowerBonusHeroGroupInfo_hotfix.call(new object[] { this, floorInfo, levelInfo, ruleInfo, bonusHeroGroupInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (levelInfo == null) { return; } this.m_nameText.text = floorInfo.Name; this.m_hardText.text = floorInfo.MonsterLevel.ToString(); this.m_image.sprite = AssetUtility.Instance.GetSprite(levelInfo.ThumbImage); this.m_costEnergyText.text = floorInfo.EnergySuccess.ToString(); this.SetConditions(this.m_winConditionGroupTransform, levelInfo.BattleInfo.WinDesc, 0); if (ruleInfo != null && ruleInfo.SkillInfo != null) { this.SetConditions(this.m_ruleConditionGroupTransform, ruleInfo.Desc, 1); } else { GameObjectUtility.DestroyChildren(this.m_ruleConditionGroupTransform.gameObject); } if (bonusHeroGroupInfo != null) { this.m_recommendHeroDescText.text = UIUtility.GetDescText(floorInfo.BonusHeroDesc, floorInfo.BonusHeroDescParam); this.SetRecommendHeros(bonusHeroGroupInfo.BonusHeroIdList); } GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); GameObjectUtility.DestroyChildren(this.m_rewardGroupTransform.gameObject); RewardGoodsUIController.CreateRewardGoodsList(floorInfo.RewardList, this.m_rewardGroupTransform, assetInContainer, null, true, 0, true); }
// Token: 0x06014DE8 RID: 85480 RVA: 0x00549C08 File Offset: 0x00547E08 public void SetRewards(List <Goods> goodsList) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetRewardsList ` 1_hotfix != null) { this.m_SetRewardsList ` 1_hotfix.call(new object[] { this, goodsList }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; GameObjectUtility.DestroyChildren(this.m_rewardGoodsGameObject); if (goodsList == null) { return; } GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); RewardGoodsUIController.CreateRewardGoodsList(goodsList, this.m_rewardGoodsGameObject.transform, assetInContainer, null, true, 0, true); }
// Token: 0x060143E1 RID: 82913 RVA: 0x00526690 File Offset: 0x00524890 public void SetTreasureLevelInfo(ConfigDataTreasureLevelInfo levelInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetTreasureLevelInfoConfigDataTreasureLevelInfo_hotfix != null) { this.m_SetTreasureLevelInfoConfigDataTreasureLevelInfo_hotfix.call(new object[] { this, levelInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_treasureLevelInfo = levelInfo; this.m_levelText.text = levelInfo.MonsterLevel.ToString(); this.m_energyText.text = levelInfo.EnergySuccess.ToString(); this.m_ticketText.text = levelInfo.TicketCost.ToString(); GameObjectUtility.DestroyChildren(this.m_rewardGroupGameObject); GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods"); RewardGoodsUIController.CreateRewardGoodsList(levelInfo.RewardList, this.m_rewardGroupGameObject.transform, assetInContainer, null, false, 0, true); }
// 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: 0x06009FFE RID: 40958 RVA: 0x002D2A0C File Offset: 0x002D0C0C public void SetArenaLevelInfo(ConfigDataArenaLevelInfo levelInfo, ConfigDataArenaLevelInfo prevLevelInfo, GameObject rewardGoodPrefab) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetArenaLevelInfoConfigDataArenaLevelInfoConfigDataArenaLevelInfoGameObject_hotfix != null) { this.m_SetArenaLevelInfoConfigDataArenaLevelInfoConfigDataArenaLevelInfoGameObject_hotfix.call(new object[] { this, levelInfo, prevLevelInfo, rewardGoodPrefab }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; if (levelInfo.UpgradePoints > 0 || prevLevelInfo == null) { this.m_nameText.text = levelInfo.UpgradePoints.ToString(); } else { this.m_nameText.text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Arena_ArenaPointLessThan), prevLevelInfo.UpgradePoints); } ConfigDataMailInfo configDataMailInfo = configDataLoader.GetConfigDataMailInfo(levelInfo.LevelRewardMailTemplateId); GameObjectUtility.DestroyChildren(this.m_rewardGroupGameObject); if (configDataMailInfo != null && configDataMailInfo.Attachments.Count > 0) { RewardGoodsUIController.CreateRewardGoodsList(configDataMailInfo.Attachments, this.m_rewardGroupGameObject.transform, rewardGoodPrefab, null, true, 0, true); this.m_noRewardGameObject.SetActive(false); } else { this.m_noRewardGameObject.SetActive(true); } }
// Token: 0x06013284 RID: 78468 RVA: 0x004E1EE8 File Offset: 0x004E00E8 public void SetBoxItemInfo(Goods good, bool isPresent) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetBoxItemInfoGoodsBoolean_hotfix != null) { this.m_SetBoxItemInfoGoodsBoolean_hotfix.call(new object[] { this, good, isPresent }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; GameObject assetInContainer = base.GetAssetInContainer <GameObject>("BoxItem"); RewardGoodsUIController.CreateRewardGoods(good, this.m_itemGoodsDummy.transform, assetInContainer, false, 0); string format = this.m_configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Store_ItemCount); this.m_itemNameText.text = string.Format(format, UIUtility.GetGoodsName(good.GoodsType, good.Id), good.Count.ToString()); if (isPresent) { this.m_presentLogo.SetActive(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); }
// Token: 0x0600D676 RID: 54902 RVA: 0x003A701C File Offset: 0x003A521C public LuaExportHelper(RewardGoodsUIController owner) { this.m_owner = owner; }
// Token: 0x06009F6A RID: 40810 RVA: 0x002D0EB8 File Offset: 0x002CF0B8 public void SetArenaLevelInfo(ConfigDataArenaLevelInfo arenaLevelInfo, GameObject rewardGoodsPrefab, int playerArenaLevelId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetArenaLevelInfoConfigDataArenaLevelInfoGameObjectInt32_hotfix != null) { this.m_SetArenaLevelInfoConfigDataArenaLevelInfoGameObjectInt32_hotfix.call(new object[] { this, arenaLevelInfo, rewardGoodsPrefab, playerArenaLevelId }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; GameObjectUtility.DestroyChildren(this.m_lowRewardGroupGameObject); GameObjectUtility.DestroyChildren(this.m_middleRewardGroupGameObject); GameObjectUtility.DestroyChildren(this.m_highRewardGroupGameObject); GameObjectUtility.DestroyChildren(this.m_topRewardGroupGameObject); ConfigDataMailInfo configDataMailInfo = configDataLoader.GetConfigDataMailInfo(arenaLevelInfo.LevelRewardMailTemplateId); if (arenaLevelInfo.ID == 1 || arenaLevelInfo.ID == 2 || arenaLevelInfo.ID == 3) { this.m_arenaLevelUIStateCtrl.SetToUIState("Low", false, true); this.m_lowLevelUIStateCtrl.SetToUIState("ArenalLevel" + arenaLevelInfo.ID, false, true); this.m_lowLevelIconImage.sprite = AssetUtility.Instance.GetSprite(arenaLevelInfo.Icon); this.m_lowLevelText.text = arenaLevelInfo.Name; this.m_lowArenaPointText.text = arenaLevelInfo.UpgradePoints.ToString(); if (arenaLevelInfo.ID == playerArenaLevelId) { this.m_lowUIStateCtrl.SetToUIState("Now", false, true); } else if (arenaLevelInfo.ID % 2 == 0) { this.m_lowUIStateCtrl.SetToUIState("Color", false, true); } else { this.m_lowUIStateCtrl.SetToUIState("None", false, true); } if (configDataMailInfo != null) { RewardGoodsUIController.CreateRewardGoodsList(configDataMailInfo.Attachments, this.m_lowRewardGroupGameObject.transform, rewardGoodsPrefab, null, true, 0, true); } } else if (arenaLevelInfo.ID == 4 || arenaLevelInfo.ID == 5 || arenaLevelInfo.ID == 6) { this.m_arenaLevelUIStateCtrl.SetToUIState("Middle", false, true); this.m_middleLevelUIStateCtrl.SetToUIState("ArenalLevel" + arenaLevelInfo.ID, false, true); this.m_middleLevelIconImage.sprite = AssetUtility.Instance.GetSprite(arenaLevelInfo.Icon); this.m_middleLevelText.text = arenaLevelInfo.Name; this.m_middleArenaPointText.text = arenaLevelInfo.UpgradePoints.ToString(); if (arenaLevelInfo.ID == playerArenaLevelId) { this.m_middleUIStateCtrl.SetToUIState("Now", false, true); } else if (arenaLevelInfo.ID % 2 == 0) { this.m_middleUIStateCtrl.SetToUIState("Color", false, true); } else { this.m_middleUIStateCtrl.SetToUIState("None", false, true); } if (configDataMailInfo != null) { RewardGoodsUIController.CreateRewardGoodsList(configDataMailInfo.Attachments, this.m_middleRewardGroupGameObject.transform, rewardGoodsPrefab, null, true, 0, true); } } else if (arenaLevelInfo.ID == 7 || arenaLevelInfo.ID == 8 || arenaLevelInfo.ID == 9) { this.m_arenaLevelUIStateCtrl.SetToUIState("High", false, true); this.m_highLevelUIStateCtrl.SetToUIState("ArenalLevel" + arenaLevelInfo.ID, false, true); this.m_highLevelIconImage.sprite = AssetUtility.Instance.GetSprite(arenaLevelInfo.Icon); this.m_highLevelText.text = arenaLevelInfo.Name; this.m_highArenaPointText.text = arenaLevelInfo.UpgradePoints.ToString(); if (arenaLevelInfo.ID == playerArenaLevelId) { this.m_highUIStateCtrl.SetToUIState("Now", false, true); } else if (arenaLevelInfo.ID % 2 == 0) { this.m_highUIStateCtrl.SetToUIState("Color", false, true); } else { this.m_highUIStateCtrl.SetToUIState("None", false, true); } if (configDataMailInfo != null) { RewardGoodsUIController.CreateRewardGoodsList(configDataMailInfo.Attachments, this.m_highRewardGroupGameObject.transform, rewardGoodsPrefab, null, true, 0, true); } } else if (arenaLevelInfo.ID == 10) { this.m_arenaLevelUIStateCtrl.SetToUIState("Top", false, true); this.m_topLevelIconImage.sprite = AssetUtility.Instance.GetSprite(arenaLevelInfo.Icon); this.m_topLevelText.text = arenaLevelInfo.Name; this.m_topArenaPointText.text = arenaLevelInfo.UpgradePoints.ToString(); if (arenaLevelInfo.ID == playerArenaLevelId) { this.m_topUIStateCtrl.SetToUIState("Now", false, true); } else if (arenaLevelInfo.ID % 2 == 0) { this.m_topUIStateCtrl.SetToUIState("Color", false, true); } else { this.m_topUIStateCtrl.SetToUIState("None", false, true); } if (configDataMailInfo != null) { RewardGoodsUIController.CreateRewardGoodsList(configDataMailInfo.Attachments, this.m_topRewardGroupGameObject.transform, rewardGoodsPrefab, null, true, 0, true); } } }