// 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);
            }
        }
Пример #2
0
        // 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: 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);
                }
            }
        }