// Token: 0x06009F6B RID: 40811 RVA: 0x002D13E0 File Offset: 0x002CF5E0 public void SetDanInfo(ConfigDataRealTimePVPDanInfo danInfo, GameObject rewardGoodsPrefab, int playerDanId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetDanInfoConfigDataRealTimePVPDanInfoGameObjectInt32_hotfix != null) { this.m_SetDanInfoConfigDataRealTimePVPDanInfoGameObjectInt32_hotfix.call(new object[] { this, danInfo, rewardGoodsPrefab, playerDanId }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataMailInfo configDataMailInfo = null; ConfigDataRealTimePVPDanRewardInfo configDataRealTimePVPDanRewardInfo = configDataLoader.GetConfigDataRealTimePVPDanRewardInfo(danInfo.ID); if (configDataRealTimePVPDanRewardInfo != null) { configDataMailInfo = configDataLoader.GetConfigDataMailInfo(configDataRealTimePVPDanRewardInfo.DanRewardMailTemplateId); } GameObjectUtility.DestroyChildren(this.m_lowRewardGroupGameObject); GameObjectUtility.DestroyChildren(this.m_middleRewardGroupGameObject); GameObjectUtility.DestroyChildren(this.m_highRewardGroupGameObject); GameObjectUtility.DestroyChildren(this.m_topRewardGroupGameObject); if (danInfo.ID == 1 || danInfo.ID == 2 || danInfo.ID == 3) { this.m_arenaLevelUIStateCtrl.SetToUIState("Low", false, true); this.m_lowLevelUIStateCtrl.SetToUIState("ArenalLevel" + danInfo.ID, false, true); this.m_lowLevelIconImage.sprite = AssetUtility.Instance.GetSprite(danInfo.Icon); this.m_lowLevelText.text = danInfo.Name; this.m_lowArenaPointText.text = danInfo.RelegationScore.ToString(); if (danInfo.ID == playerDanId) { this.m_lowUIStateCtrl.SetToUIState("Now", false, true); } else if (danInfo.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 (danInfo.ID == 4 || danInfo.ID == 5 || danInfo.ID == 6) { this.m_arenaLevelUIStateCtrl.SetToUIState("Middle", false, true); this.m_middleLevelUIStateCtrl.SetToUIState("ArenalLevel" + danInfo.ID, false, true); this.m_middleLevelIconImage.sprite = AssetUtility.Instance.GetSprite(danInfo.Icon); this.m_middleLevelText.text = danInfo.Name; this.m_middleArenaPointText.text = danInfo.RelegationScore.ToString(); if (danInfo.ID == playerDanId) { this.m_middleUIStateCtrl.SetToUIState("Now", false, true); } else if (danInfo.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 (danInfo.ID == 7 || danInfo.ID == 8 || danInfo.ID == 9) { this.m_arenaLevelUIStateCtrl.SetToUIState("High", false, true); this.m_highLevelUIStateCtrl.SetToUIState("ArenalLevel" + danInfo.ID, false, true); this.m_highLevelIconImage.sprite = AssetUtility.Instance.GetSprite(danInfo.Icon); this.m_highLevelText.text = danInfo.Name; this.m_highArenaPointText.text = danInfo.RelegationScore.ToString(); if (danInfo.ID == playerDanId) { this.m_highUIStateCtrl.SetToUIState("Now", false, true); } else if (danInfo.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 (danInfo.ID == 10) { this.m_arenaLevelUIStateCtrl.SetToUIState("Top", false, true); this.m_topLevelIconImage.sprite = AssetUtility.Instance.GetSprite(danInfo.Icon); this.m_topLevelText.text = danInfo.Name; this.m_topArenaPointText.text = danInfo.RelegationScore.ToString(); if (danInfo.ID == playerDanId) { this.m_topUIStateCtrl.SetToUIState("Now", false, true); } else if (danInfo.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); } } }