// Token: 0x0600F785 RID: 63365 RVA: 0x00416164 File Offset: 0x00414364 public void InitGuildMassiveCombatLastHeroInfo(Hero hero, bool isUsed, bool isPowerUp) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitGuildMassiveCombatLastHeroInfoHeroBooleanBoolean_hotfix != null) { this.m_InitGuildMassiveCombatLastHeroInfoHeroBooleanBoolean_hotfix.call(new object[] { this, hero, isUsed, isPowerUp }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; base.gameObject.SetActive(true); this.m_stateCtrl.SetToUIState((!isUsed) ? "Normal" : "Dark", false, true); this.m_powerUpGo.SetActive(isPowerUp); ConfigDataCharImageInfo charImageInfo = hero.HeroInfo.GetCharImageInfo(hero.StarLevel); if (charImageInfo != null) { this.m_heroIcon.sprite = AssetUtility.Instance.GetSprite(charImageInfo.RoundHeadImage); } ConfigDataArmyInfo armyInfo = hero.GetActiveJob().JobConnectionInfo.m_jobInfo.m_armyInfo; this.m_armyIcon.sprite = AssetUtility.Instance.GetSprite(armyInfo.Icon); this.m_levelText.text = hero.Level.ToString(); }
// Token: 0x06014DE9 RID: 85481 RVA: 0x00549CAC File Offset: 0x00547EAC private void CreateCharImage(ConfigDataCharImageInfo charImageInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateCharImageConfigDataCharImageInfo_hotfix != null) { this.m_CreateCharImageConfigDataCharImageInfo_hotfix.call(new object[] { this, charImageInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.DestroyCharImage(); if (charImageInfo == null) { return; } if (!string.IsNullOrEmpty(charImageInfo.Spine)) { this.m_spineGraphic = new UISpineGraphic(); this.m_spineGraphic.Create(charImageInfo.Spine); this.m_spineGraphic.SetParent(this.m_charGameObject); this.m_spineGraphic.PlayAnimation("idle_Normal", true, 0); this.m_spineGraphic.ForceUpdate(); } else if (!string.IsNullOrEmpty(charImageInfo.Image)) { this.m_charImage.sprite = AssetUtility.Instance.GetSprite(charImageInfo.Image); this.m_charImage.gameObject.SetActive(this.m_charImage.sprite != null); } }
// Token: 0x0600962F RID: 38447 RVA: 0x002AFFD0 File Offset: 0x002AE1D0 public void RefreshDisplay() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_RefreshDisplay_hotfix != null) { this.m_RefreshDisplay_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataCharImageInfo charImageInfo = this.m_heroWrap.hero.GetCharImageInfo(this.m_heroWrap.hero.Star); this.m_heroNameText.text = this.m_heroWrap.hero.Name; this.m_cardIamge.sprite = AssetUtility.Instance.GetSprite(charImageInfo.SummonHeadImage); if (this.m_heroWrap.isUnlocked) { this.m_heroHeadAnimation.SetToUIState("Normal", false, true); } else { this.m_heroHeadAnimation.SetToUIState("Unknow", false, true); } this.m_selectImage.gameObject.SetActive(this.m_heroWrap.isSelect); }
// Token: 0x0600C292 RID: 49810 RVA: 0x0035FE74 File Offset: 0x0035E074 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(); this.CollectHeroModelAssets(this.m_playerContext.BusinessCard.Heroes); this.CollectHeroModelAssets(this.m_playerContext.BusinessCard.MostSkilledHeroes); base.CollectSpriteAsset(UIUtility.GetPlayerHeadIconImageName(HeadIconTools.GetHeadPortrait(this.m_playerContext.BusinessCard.HeadIcon))); if (this.m_playerContext.IsMe(this.m_playerContext.BusinessCard.UserId)) { foreach (Hero hero in this.m_playerContext.GetHeros()) { ConfigDataCharImageInfo charImageInfo = hero.HeroInfo.GetCharImageInfo(hero.StarLevel); if (charImageInfo != null) { base.CollectAsset(AssetUtility.MakeSpriteAssetName(charImageInfo.CardHeadImage, "_1")); } } } return(base.IsNeedLoadDynamicRes()); }
// Token: 0x0600A2F2 RID: 41714 RVA: 0x002DE7CC File Offset: 0x002DC9CC private void SetItemStateByType(GoodsType type) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetItemStateByTypeGoodsType_hotfix != null) { this.m_SetItemStateByTypeGoodsType_hotfix.call(new object[] { this, type }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; switch (type) { case GoodsType.GoodsType_JobMaterial: break; case GoodsType.GoodsType_Item: if (this.m_itemInfo.DisplayType == ItemDisplayType.ItemDisplayType_HeroFragment) { this.m_iconImage.transform.localScale = new Vector3(1.3f, 1.3f); this.m_bgImage.gameObject.SetActive(false); } break; case GoodsType.GoodsType_Equipment: { ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; EquipmentBagItem equipmentBagItem = (EquipmentBagItem)this.BagItem; int wearedEquipmentHeroIdByEquipmentId = projectLPlayerContext.GetWearedEquipmentHeroIdByEquipmentId(equipmentBagItem.InstanceId); if (wearedEquipmentHeroIdByEquipmentId > 0) { ConfigDataHeroInfo configDataHeroInfo = configDataLoader.GetConfigDataHeroInfo(wearedEquipmentHeroIdByEquipmentId); ConfigDataCharImageInfo charImageInfo = configDataHeroInfo.GetCharImageInfo(configDataHeroInfo.Star); if (charImageInfo != null) { this.m_equipingTagHeadIcon.sprite = AssetUtility.Instance.GetSprite(charImageInfo.SmallHeadImage); } } this.m_equipingTag.SetActive(wearedEquipmentHeroIdByEquipmentId > 0); UIUtility.SetGameObjectChildrenActiveCount(this.m_starGroup, equipmentBagItem.StarLevel); this.m_lvValueText.text = equipmentBagItem.Level.ToString(); this.m_lockImage.SetActive(equipmentBagItem.Locked); this.m_enchantmentIcon.gameObject.SetActive(equipmentBagItem.IsEnchant()); if (equipmentBagItem.IsEnchant()) { ConfigDataResonanceInfo configDataResonanceInfo = configDataLoader.GetConfigDataResonanceInfo(equipmentBagItem.ResonanceId); this.m_enchantmentIcon.sprite = AssetUtility.Instance.GetSprite(configDataResonanceInfo.SmallIcon); } break; } default: if (type != GoodsType.GoodsType_EnchantStone) { } break; } }
// Token: 0x0600BE21 RID: 48673 RVA: 0x003522C0 File Offset: 0x003504C0 public void SetHeroListItemInfo(ARHeroListUIController.HeroWrap heroWrap) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetHeroListItemInfoHeroWrap_hotfix != null) { this.m_SetHeroListItemInfoHeroWrap_hotfix.call(new object[] { this, heroWrap }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; Hero hero = heroWrap.hero; if (hero.HeroInfo != null) { this.m_heroWrap = heroWrap; ConfigDataCharImageInfo charImageInfo = hero.HeroInfo.GetCharImageInfo(hero.StarLevel); if (charImageInfo != null) { this.m_heroIconImg.sprite = AssetUtility.Instance.GetSprite(AssetUtility.MakeSpriteAssetName(charImageInfo.CardHeadImage, "_1")); } ConfigDataArmyInfo configDataArmyInfo = this.m_configDataLoader.GetConfigDataArmyInfo(hero.GetActiveJob().JobConnectionInfo.m_jobInfo.Army_ID); this.m_heroTypeImg.sprite = AssetUtility.Instance.GetSprite(configDataArmyInfo.Icon); this.m_heroLvText.text = hero.Level.ToString(); this.m_heroFrameImg.sprite = AssetUtility.Instance.GetSprite(UIUtility.GetHeroItemFrameNameByRank(hero.HeroInfo.GetRank(hero.StarLevel))); this.m_heroSSRFrameEffect.SetActive(hero.HeroInfo.GetRank(hero.StarLevel) >= 4); UIUtility.SetGameObjectChildrenActiveCount(this.m_heroStar, hero.StarLevel); base.gameObject.SetActive(true); this.RefreshHeroSelect(); } }
// Token: 0x0600997C RID: 39292 RVA: 0x002BD258 File Offset: 0x002BB458 public void SetHero(BattleHero hero) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetHeroBattleHero_hotfix != null) { this.m_SetHeroBattleHero_hotfix.call(new object[] { this, hero }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_hero = hero; if (hero == null) { return; } ConfigDataCharImageInfo charImageInfo = hero.HeroInfo.GetCharImageInfo(hero.StarLevel); if (charImageInfo != null) { this.m_heroIconImage.sprite = AssetUtility.Instance.GetSprite(charImageInfo.RoundHeadImage); } ConfigDataArmyInfo armyInfo = hero.GetActiveJob().JobConnectionInfo.m_jobInfo.m_armyInfo; this.m_armyIconImage.sprite = AssetUtility.Instance.GetSprite(armyInfo.Icon); }
// Token: 0x06014DE7 RID: 85479 RVA: 0x00549ABC File Offset: 0x00547CBC public void SetEvent(ConfigDataEventInfo eventInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetEventConfigDataEventInfo_hotfix != null) { this.m_SetEventConfigDataEventInfo_hotfix.call(new object[] { this, eventInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (eventInfo == null) { return; } this.m_nameText.text = eventInfo.Name; this.m_descText.text = eventInfo.Desc; this.m_monsterLevelText.text = eventInfo.MonsterLevel.ToString(); this.m_energyText.text = eventInfo.EnergySuccess.ToString(); this.m_dangerUIStateController.SetToUIState((!eventInfo.IsDanger) ? "Normal" : "Danger", false, true); this.m_missionUIStateController.SetToUIState((!eventInfo.IsDanger) ? "Normal" : "Danger", false, true); IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataCharImageInfo configDataCharImageInfo = configDataLoader.GetConfigDataCharImageInfo(eventInfo.CharImage_ID); this.CreateCharImage(configDataCharImageInfo); }
// Token: 0x060096DE RID: 38622 RVA: 0x002B1D6C File Offset: 0x002AFF6C public void Init(GameObject root) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitGameObject_hotfix != null) { this.m_InitGameObject_hotfix.call(new object[] { this, root }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_root = root; this.m_root.SetActive(true); this.m_configDataLoader = (GameManager.Instance.ConfigDataLoader as IConfigDataLoader); this.m_playerContext = (GameManager.Instance.PlayerContext as ProjectLPlayerContext); IEnumerable <KeyValuePair <int, ConfigDataHeroInfo> > allConfigDataHeroInfo = this.m_configDataLoader.GetAllConfigDataHeroInfo(); int childCount = this.m_root.transform.childCount; for (int i = 0; i < childCount; i++) { Transform child = this.m_root.transform.GetChild(i); ConfigDataHeroInfo configDataHeroInfo = null; foreach (KeyValuePair <int, ConfigDataHeroInfo> keyValuePair in allConfigDataHeroInfo) { if (keyValuePair.Value.Useable && keyValuePair.Value.Name_Eng == child.name) { configDataHeroInfo = keyValuePair.Value; break; } } if (configDataHeroInfo != null) { ConfigDataCharImageInfo charImageInfo = configDataHeroInfo.GetCharImageInfo(configDataHeroInfo.Star); if (charImageInfo != null) { GameObject asset = AssetUtility.Instance.GetAsset <GameObject>(charImageInfo.HeroPainting); if (asset != null) { GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(asset); gameObject.transform.SetParent(child, false); CommonUIStateController component = gameObject.GetComponent <CommonUIStateController>(); component.SetToUIState("Dark", false, true); this.heroDictionary.Add(child.name, component); } } } } List <Hero> heros = this.m_playerContext.GetHeros(); foreach (Hero hero in heros) { CommonUIStateController commonUIStateController = null; if (this.heroDictionary.TryGetValue(hero.HeroInfo.Name_Eng, out commonUIStateController)) { commonUIStateController.SetToUIState("Normal", false, true); } } }
// Token: 0x0601310F RID: 78095 RVA: 0x004DD650 File Offset: 0x004DB850 public void Refresh(List <int> m_heroIDList) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_RefreshList ` 1_hotfix != null) { this.m_RefreshList ` 1_hotfix.call(new object[] { this, m_heroIDList }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; foreach (GameObject obj in this.m_heroGameObject) { UnityEngine.Object.Destroy(obj); } this.m_heroGameObject.Clear(); m_heroIDList.Sort(new Comparison <int>(this.Compare)); for (int i = 0; i < 10; i++) { ConfigDataHeroInfo configDataHeroInfo = this.m_configDataLoader.GetConfigDataHeroInfo(m_heroIDList[i]); ConfigDataCharImageInfo charImageInfo = configDataHeroInfo.GetCharImageInfo(configDataHeroInfo.Star); GameObject asset = AssetUtility.Instance.GetAsset <GameObject>(charImageInfo.HeroPainting); GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(asset); Transform transform = GameObjectUtility.FindGameObjectByName(this.m_heroDummyParentList[i], "HeroDummy").transform; CommonUIStateController commonUIStateController = GameObjectUtility.FindComponentByName <CommonUIStateController>(this.m_heroDummyParentList[i], "Quality"); Text text = GameObjectUtility.FindComponentByName <Text>(this.m_heroDummyParentList[i], "HeroNameText"); text.text = configDataHeroInfo.Name; gameObject.transform.SetParent(transform, false); int rank = configDataHeroInfo.Rank; if (rank != 2) { if (rank != 3) { if (rank == 4) { commonUIStateController.SetToUIState("SSR", false, true); } } else { commonUIStateController.SetToUIState("SR", false, true); } } else { commonUIStateController.SetToUIState("R", false, true); } this.m_heroGameObject.Add(gameObject); } this.UpdateSharePlayerInfo(); }
// Token: 0x06003790 RID: 14224 RVA: 0x000FA21C File Offset: 0x000F841C public void OnActorCastSkill(CombatActor a, ConfigDataSkillInfo skillInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnActorCastSkillCombatActorConfigDataSkillInfo_hotfix != null) { this.m_OnActorCastSkillCombatActorConfigDataSkillInfo_hotfix.call(new object[] { this, a, skillInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (a == null || skillInfo == null) { return; } if (skillInfo.CutsceneType != 0) { ConfigDataCutsceneInfo configDataCutsceneInfo = null; if (skillInfo.CutsceneType == 1) { ConfigDataHeroInfo heroInfo = a.Team.HeroInfo; if (heroInfo != null) { ConfigDataCharImageInfo charImageInfo = heroInfo.GetCharImageInfo(a.Team.HeroStar); if (charImageInfo != null) { configDataCutsceneInfo = charImageInfo.m_skillCutsceneInfo; } } } this.Pause(true); this.m_teams[a.TeamNumber].SetGraphicSkillFade(true); if (configDataCutsceneInfo != null) { this.m_cutscenePauseCountdown = Combat.MillisecondToFrame1(configDataCutsceneInfo.Time); } else { this.m_cutscenePauseCountdown = Combat.MillisecondToFrame1(this.ConfigDataLoader.Const_SkillPauseTime); } this.m_battle.Listener.OnStartSkillCutscene(skillInfo, configDataCutsceneInfo, a.TeamNumber); } }
// Token: 0x0600BC1F RID: 48159 RVA: 0x0034BBCC File Offset: 0x00349DCC public void CreateGraphic(ConfigDataCharImageInfo charImageInfo, ConfigDataCharImageSkinResourceInfo skinResInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateGraphicConfigDataCharImageInfoConfigDataCharImageSkinResourceInfo_hotfix != null) { this.m_CreateGraphicConfigDataCharImageInfoConfigDataCharImageSkinResourceInfo_hotfix.call(new object[] { this, charImageInfo, skinResInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.DestroyGraphic(); if (charImageInfo == null) { return; } if (!string.IsNullOrEmpty(charImageInfo.Spine)) { string text = string.Empty; if (skinResInfo != null) { text = skinResInfo.SpineAssetPath; } if (string.IsNullOrEmpty(text)) { text = charImageInfo.Spine; } this.m_spineGraphic = new UISpineGraphic(); this.m_spineGraphic.Create(text); this.m_spineGraphic.SetParent(base.gameObject); this.m_spineGraphic.SetScale((float)charImageInfo.CombatScale * 0.01f); this.m_spineGraphic.SetPosition(new Vector3(0f, (float)charImageInfo.CombatYOffset, 0f)); this.m_image.gameObject.SetActive(false); } else if (!string.IsNullOrEmpty(charImageInfo.Image)) { this.m_image.sprite = AssetUtility.Instance.GetSprite(charImageInfo.Image); this.m_image.gameObject.SetActive(this.m_image.sprite != null); } this.m_animationName = string.Empty; }
// Token: 0x0600C209 RID: 49673 RVA: 0x0035E680 File Offset: 0x0035C880 public void SetHeroListItemInfo(Hero hero, BusinessCard businessCard) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetHeroListItemInfoHeroBusinessCard_hotfix != null) { this.m_SetHeroListItemInfoHeroBusinessCard_hotfix.call(new object[] { this, hero2, businessCard }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; Hero hero = hero2; if (hero.HeroInfo != null) { this.m_hero = hero; ConfigDataCharImageInfo charImageInfo = hero.HeroInfo.GetCharImageInfo(hero.StarLevel); if (charImageInfo != null) { this.m_heroIconImg.sprite = AssetUtility.Instance.GetSprite(AssetUtility.MakeSpriteAssetName(charImageInfo.CardHeadImage, "_1")); } ConfigDataArmyInfo configDataArmyInfo = this.m_configDataLoader.GetConfigDataArmyInfo(hero.GetActiveJob().JobConnectionInfo.m_jobInfo.Army_ID); this.m_heroTypeImg.sprite = AssetUtility.Instance.GetSprite(configDataArmyInfo.Icon); this.m_heroLvText.text = hero.Level.ToString(); this.m_heroFrameImg.sprite = AssetUtility.Instance.GetSprite(UIUtility.GetHeroItemFrameNameByRank(hero.HeroInfo.GetRank(hero.StarLevel))); this.m_heroSSRFrameEffect.SetActive(hero.HeroInfo.GetRank(hero.StarLevel) >= 4); UIUtility.SetGameObjectChildrenActiveCount(this.m_heroStar, hero.StarLevel); int num = businessCard.SetInfo.Heroes.FindIndex((BusinessCardHeroSet i) => i.HeroId == hero.HeroId); if (num >= 0) { this.m_heroPositionIndex = businessCard.SetInfo.Heroes[num].PositionIndex; this.m_heroIndexText.text = (businessCard.SetInfo.Heroes[num].PositionIndex + 1).ToString(); this.m_heroItemUIStateController.SetToUIState("Select", false, true); } else { this.m_heroItemUIStateController.SetToUIState("Normal", false, true); } base.gameObject.SetActive(true); } }
// Token: 0x06009618 RID: 38424 RVA: 0x002AFAD8 File Offset: 0x002ADCD8 public void Refresh(ConfigDataHeroInfo heroInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_RefreshConfigDataHeroInfo_hotfix != null) { this.m_RefreshConfigDataHeroInfo_hotfix.call(new object[] { this, heroInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataCharImageInfo charImageInfo = heroInfo.GetCharImageInfo(heroInfo.Star); this.m_ssrGameObject.SetActive(false); this.m_srGameObject.SetActive(false); this.m_rGameObject.SetActive(false); switch (heroInfo.Rank) { case 1: this.m_rGameObject.SetActive(true); break; case 2: this.m_rGameObject.SetActive(true); break; case 3: this.m_srGameObject.SetActive(true); break; case 4: this.m_ssrGameObject.SetActive(true); break; } this.m_heroNameText.text = heroInfo.Name; if (this.m_heroEnglishNameText != null) { this.m_heroEnglishNameText.text = heroInfo.Name_Eng; } this.m_cvNameText.text = "CV:" + charImageInfo.CVName; }
// Token: 0x0600DF64 RID: 57188 RVA: 0x003C4DC4 File Offset: 0x003C2FC4 public void InitTrainingHeroItem(Hero hero, bool isAchivementUp) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitTrainingHeroItemHeroBoolean_hotfix != null) { this.m_InitTrainingHeroItemHeroBoolean_hotfix.call(new object[] { this, hero, isAchivementUp }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_hero = hero; this.m_heroLvText.text = hero.Level.ToString(); UIUtility.SetGameObjectChildrenActiveCount(this.m_heroStar, hero.StarLevel); ConfigDataCharImageInfo charImageInfo = hero.HeroInfo.GetCharImageInfo(hero.StarLevel); if (charImageInfo != null) { this.m_heroIconImg.sprite = AssetUtility.Instance.GetSprite(AssetUtility.MakeSpriteAssetName(charImageInfo.CardHeadImage, "_1")); } IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataArmyInfo configDataArmyInfo = configDataLoader.GetConfigDataArmyInfo(hero.GetActiveJob().JobConnectionInfo.m_jobInfo.Army_ID); this.m_heroTypeImg.sprite = AssetUtility.Instance.GetSprite(configDataArmyInfo.Icon); this.m_frameImg.sprite = AssetUtility.Instance.GetSprite(UIUtility.GetHeroItemFrameNameByRank(hero.HeroInfo.GetRank(hero.StarLevel))); this.m_ssrFrameEffect.SetActive(hero.HeroInfo.GetRank(hero.StarLevel) >= 4); this.m_achivementUpImage.SetActive(isAchivementUp); ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; if (!projectLPlayerContext.IsHeroAssigned(this.m_hero.HeroId)) { this.m_uiStateCtrl.SetToUIState("Normal", false, true); } else { this.m_uiStateCtrl.SetToUIState("Assistant", false, true); } }
// Token: 0x0600905A RID: 36954 RVA: 0x0029F124 File Offset: 0x0029D324 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(); IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataHeroInfo configDataHeroInfo = configDataLoader.GetConfigDataHeroInfo(14); ConfigDataCharImageInfo charImageInfo = configDataHeroInfo.GetCharImageInfo(configDataHeroInfo.Star); if (charImageInfo != null) { base.CollectAsset(charImageInfo.Spine); base.CollectSpriteAsset(charImageInfo.Image); } return(base.IsNeedLoadDynamicRes()); }
// Token: 0x0600B12F RID: 45359 RVA: 0x00311654 File Offset: 0x0030F854 public void SetHero(Hero hero) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetHeroHero_hotfix != null) { this.m_SetHeroHero_hotfix.call(new object[] { this, hero }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (hero == null) { return; } this.m_hero = hero; ConfigDataCharImageInfo charImageInfo = hero.HeroInfo.GetCharImageInfo(hero.StarLevel); if (charImageInfo != null) { this.m_iconImage.sprite = AssetUtility.Instance.GetSprite(AssetUtility.MakeSpriteAssetName(charImageInfo.CardHeadImage, "_0")); } }
// Token: 0x0600FB53 RID: 64339 RVA: 0x00421884 File Offset: 0x0041FA84 public void InitEquipmentDepotListItemInfo(BagItemBase bagItem, bool canWear) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitEquipmentDepotListItemInfoBagItemBaseBoolean_hotfix != null) { this.m_InitEquipmentDepotListItemInfoBagItemBaseBoolean_hotfix.call(new object[] { this, bagItem, canWear }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; base.gameObject.SetActive(true); base.gameObject.name = bagItem.ListItemName; this.BagItem = bagItem; EquipmentBagItem equipmentBagItem = bagItem as EquipmentBagItem; EnchantStoneBagItem enchantStoneBagItem = bagItem as EnchantStoneBagItem; this.EquipmentInstanceId = this.BagItem.InstanceId; if (equipmentBagItem != null) { ConfigDataEquipmentInfo equipmentInfo = equipmentBagItem.EquipmentInfo; this.m_icon.sprite = AssetUtility.Instance.GetSprite(equipmentInfo.Icon); this.m_bgFrame.sprite = AssetUtility.Instance.GetSprite(UIUtility.GetGoodsFrameNameByRank(equipmentInfo.Rank)); this.m_SSREffect.SetActive(UIUtility.IsRankSSR(equipmentInfo.Rank)); UIUtility.SetGameObjectChildrenActiveCount(this.m_starGroup, equipmentBagItem.StarLevel); this.m_lvValueText.text = equipmentBagItem.Level.ToString(); ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; int wearedEquipmentHeroIdByEquipmentId = projectLPlayerContext.GetWearedEquipmentHeroIdByEquipmentId(this.EquipmentInstanceId); this.IsEquiped = (wearedEquipmentHeroIdByEquipmentId > 0); if (this.IsEquiped) { ConfigDataHeroInfo configDataHeroInfo = configDataLoader.GetConfigDataHeroInfo(wearedEquipmentHeroIdByEquipmentId); ConfigDataCharImageInfo charImageInfo = configDataHeroInfo.GetCharImageInfo(configDataHeroInfo.Star); if (charImageInfo != null) { this.m_equipingTagHeadIcon.sprite = AssetUtility.Instance.GetSprite(charImageInfo.SmallHeadImage); } this.m_stateCtrl.SetToUIState("Equiped", false, true); } else { this.m_stateCtrl.SetToUIState("UnEquiped", false, true); } this.m_lockImage.SetActive(equipmentBagItem.Locked); this.m_mask.SetActive(!canWear); this.m_enchantmentIcon.gameObject.SetActive(equipmentBagItem.IsEnchant()); if (equipmentBagItem.IsEnchant()) { ConfigDataResonanceInfo configDataResonanceInfo = configDataLoader.GetConfigDataResonanceInfo(equipmentBagItem.ResonanceId); this.m_enchantmentIcon.sprite = AssetUtility.Instance.GetSprite(configDataResonanceInfo.SmallIcon); } } else { ConfigDataEnchantStoneInfo enchantStoneInfo = enchantStoneBagItem.EnchantStoneInfo; this.m_icon.sprite = AssetUtility.Instance.GetSprite(enchantStoneInfo.Icon); this.m_bgFrame.sprite = AssetUtility.Instance.GetSprite(UIUtility.GetGoodsFrameNameByRank(enchantStoneInfo.Rank)); this.m_SSREffect.SetActive(UIUtility.IsRankSSR(enchantStoneInfo.Rank)); this.m_countText.text = UIUtility.GetGoodsCount(this.BagItem.GoodsTypeId, this.BagItem.ContentId).ToString(); this.m_stateCtrl.SetToUIState("Enchant", false, true); this.m_enchantmentIcon.gameObject.SetActive(false); this.m_checkImageMask.SetActive(false); } }
// Token: 0x06012FEC RID: 77804 RVA: 0x004DA0BC File Offset: 0x004D82BC public void InitSelectRewardsInfo(Goods goods, bool isNew, bool isFragment) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitSelectRewardsInfoGoodsBooleanBoolean_hotfix != null) { this.m_InitSelectRewardsInfoGoodsBooleanBoolean_hotfix.call(new object[] { this, goods, isNew, isFragment }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_text.text = goods.Count.ToString(); this.m_goods = goods; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; string name = null; string name2 = null; int num = 0; int rank = 0; this.m_icon.gameObject.transform.localScale = Vector3.one; this.m_fragmentItemID = 0; this.m_stars.gameObject.SetActive(true); switch (goods.GoodsType) { case GoodsType.GoodsType_Hero: { Hero hero = projectLPlayerContext.GetHero(goods.Id); if (hero != null) { ConfigDataHeroInfo heroInfo = hero.HeroInfo; rank = heroInfo.GetRank(hero.StarLevel); num = hero.StarLevel; if (isFragment) { this.m_text.text = heroInfo.ExchangedFragmentCount.ToString(); this.m_fragmentItemID = heroInfo.FragmentItem_ID; name = UIUtility.GetGoodsIconName(GoodsType.GoodsType_Item, heroInfo.FragmentItem_ID); name2 = UIUtility.GetGoodsIconMaterialName(GoodsType.GoodsType_Item, heroInfo.FragmentItem_ID); this.m_stars.gameObject.SetActive(false); } else { ConfigDataCharImageInfo charImageInfo = heroInfo.GetCharImageInfo(heroInfo.Star); if (charImageInfo != null) { name = charImageInfo.SummonHeadImage; name2 = "UI/Icon/Card_ABS/Material/CardIcon.mat"; } } this.m_frame.gameObject.SetActive(false); this.m_icon.gameObject.transform.localScale *= 1.3f; } break; } case GoodsType.GoodsType_JobMaterial: { ConfigDataJobMaterialInfo configDataJobMaterialInfo = configDataLoader.GetConfigDataJobMaterialInfo(goods.Id); name = configDataJobMaterialInfo.Icon; rank = configDataJobMaterialInfo.Rank; num = 0; break; } case GoodsType.GoodsType_Item: { ConfigDataItemInfo configDataItemInfo = configDataLoader.GetConfigDataItemInfo(goods.Id); isFragment = (configDataItemInfo.DisplayType == ItemDisplayType.ItemDisplayType_HeroFragment); name = configDataItemInfo.Icon; rank = configDataItemInfo.Rank; num = 0; break; } case GoodsType.GoodsType_Equipment: { ConfigDataEquipmentInfo configDataEquipmentInfo = configDataLoader.GetConfigDataEquipmentInfo(goods.Id); name = configDataEquipmentInfo.Icon; rank = configDataEquipmentInfo.Rank; num = configDataEquipmentInfo.BornStarLevel; break; } } this.m_icon.sprite = AssetUtility.Instance.GetSprite(name); this.m_icon.material = AssetUtility.Instance.GetAsset <Material>(name2); this.m_frame.sprite = AssetUtility.Instance.GetSprite(UIUtility.GetGoodsFrameNameByRank(rank)); UIUtility.SetGameObjectChildrenActiveCount(this.m_stars, num); this.m_new.SetActive(isNew); this.m_ssrEffect.SetActive(UIUtility.IsRankSSR(rank) && !isFragment); this.m_ssrPieceEffect.SetActive(UIUtility.IsRankSSR(rank) && isFragment); this.m_text.gameObject.SetActive(goods.Count != 1 || isFragment); }
// Token: 0x06010AF5 RID: 68341 RVA: 0x00454E98 File Offset: 0x00453098 private void InitValuesInHeroItem(int lvText = 1, int starNum = 1, int curNum = 0, int totalNum = 1, int state = 0) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitValuesInHeroItemInt32Int32Int32Int32Int32_hotfix != null) { this.m_InitValuesInHeroItemInt32Int32Int32Int32Int32_hotfix.call(new object[] { this, lvText, starNum, curNum, totalNum, state }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (this.m_hero.HeroInfo != null) { ConfigDataCharImageInfo charImageInfo = this.m_hero.HeroInfo.GetCharImageInfo(this.m_hero.StarLevel); if (charImageInfo != null) { this.m_heroIconImg.sprite = AssetUtility.Instance.GetSprite(AssetUtility.MakeSpriteAssetName(charImageInfo.CardHeadImage, "_1")); } IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataArmyInfo configDataArmyInfo = configDataLoader.GetConfigDataArmyInfo(this.m_hero.GetActiveJob().JobConnectionInfo.m_jobInfo.Army_ID); this.m_heroTypeImg.sprite = AssetUtility.Instance.GetSprite(configDataArmyInfo.Icon); } ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; if (state != 0) { if (state == 1) { if (curNum >= totalNum) { this.m_uiStateCtrl.SetToUIState("NotGetAndGlowing", false, true); this.m_curHeroItemState = HeroItemUIController.HeroItemState.NotGetAndGlowing; } else { this.m_uiStateCtrl.SetToUIState("NotGet", false, true); this.m_curHeroItemState = HeroItemUIController.HeroItemState.NotGet; } this.m_heroCollectProgressText.text = curNum + "/" + totalNum; this.m_heroCollectProgressImg.fillAmount = (float)curNum / (float)totalNum; this.m_heroIconImg.color = Color.gray; this.m_redMark.gameObject.SetActive(curNum >= totalNum); } } else { this.m_uiStateCtrl.SetToUIState("Get", false, true); this.m_curHeroItemState = HeroItemUIController.HeroItemState.Get; this.m_heroLvText.text = lvText.ToString(); UIUtility.SetGameObjectChildrenActiveCount(this.m_heroStar, starNum); this.m_frameImg.sprite = AssetUtility.Instance.GetSprite(UIUtility.GetHeroItemFrameNameByRank(this.m_hero.HeroInfo.GetRank(this.m_hero.StarLevel))); this.m_ssrFrameEffect.SetActive(this.m_hero.HeroInfo.GetRank(this.m_hero.StarLevel) >= 4); if (projectLPlayerContext.IsHeroShowRedMark(this.m_hero.HeroId, this.m_hero.GetActiveJob().JobConnectionInfo.ID)) { this.m_redMark.gameObject.SetActive(true); } else { this.m_redMark.gameObject.SetActive(false); } } }
// Token: 0x0600966A RID: 38506 RVA: 0x002B0BAC File Offset: 0x002AEDAC public void LoadHeroTeam(int rank) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_LoadHeroTeamInt32_hotfix != null) { this.m_LoadHeroTeamInt32_hotfix.call(new object[] { this, rank }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_herosRGameObject.SetActive(false); this.m_herosSRGameObject.SetActive(false); this.m_herosSSRGameObject.SetActive(false); GameObject teamGameObject = null; if (rank != 4) { if (rank != 3) { if (rank == 2) { teamGameObject = this.m_herosRGameObject; } } else { teamGameObject = this.m_herosSRGameObject; } } else { teamGameObject = this.m_herosSSRGameObject; } if (teamGameObject == null) { return; } this.m_task.CustomLoadAsset(delegate { IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; IEnumerable <KeyValuePair <int, ConfigDataHeroInfo> > allConfigDataHeroInfo = configDataLoader.GetAllConfigDataHeroInfo(); for (int i = 0; i < teamGameObject.transform.childCount; i++) { Transform child = teamGameObject.transform.GetChild(i); ConfigDataHeroInfo configDataHeroInfo = null; foreach (KeyValuePair <int, ConfigDataHeroInfo> keyValuePair in allConfigDataHeroInfo) { if (keyValuePair.Value.Useable && keyValuePair.Value.Name_Eng == child.name) { configDataHeroInfo = keyValuePair.Value; break; } } if (configDataHeroInfo != null) { ConfigDataCharImageInfo charImageInfo = configDataHeroInfo.GetCharImageInfo(configDataHeroInfo.Star); if (charImageInfo != null) { this.m_task.CollectAssetWrap(charImageInfo.HeroPainting); } } } }, delegate { this.m_heroShowComponent = new HeroShowComponent(); this.m_heroShowComponent.Init(teamGameObject); }); }
// Token: 0x06014E3C RID: 85564 RVA: 0x0054A914 File Offset: 0x00548B14 public void CreateCharImage(ConfigDataCharImageInfo charImageInfo) { this.m_owner.CreateCharImage(charImageInfo); }