// Token: 0x0600C2F8 RID: 49912 RVA: 0x00361210 File Offset: 0x0035F410 public void Init() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_Init_hotfix != null) { this.m_Init_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; EventTriggerListener.Get(this.ScrollView.gameObject).onEndDrag = new EventTriggerListener.VoidDelegate(this.OnEndDrag); List <ConfigDataBigExpressionInfo> combatExpressionInfo = this.GetCombatExpressionInfo(); int count = combatExpressionInfo.Count; int num = Mathf.CeilToInt((float)count / (float)this.m_pageCapacity); for (int i = 0; i < num; i++) { GameObject gameObject = GameObjectUtility.CloneGameObject(this.Page, this.Content.transform); this.m_pageList.Add(gameObject); gameObject = GameObjectUtility.CloneGameObject(this.PagePoint, this.PagePointNode.transform); this.m_pagePointStateControllerList.Add(gameObject.GetComponent <CommonUIStateController>()); } for (int j = 0; j < count; j++) { int index = j / this.m_pageCapacity; GameObject expression = GameObjectUtility.CloneGameObject(this.Expression, this.m_pageList[index].transform); BigExpressionItem item = new BigExpressionItem(combatExpressionInfo[j], expression, new Action <int>(this.OnExpressionClick)); this.bigExpressionItemList.Add(item); } this.ScrollView.horizontalNormalizedPosition = 0f; this.SetPagePointActivity(0); }
// Token: 0x0600BE7F RID: 48767 RVA: 0x00353504 File Offset: 0x00351704 public void SummonHeroBattleShow(int selectHeroID) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SummonHeroBattleShowInt32_hotfix != null) { this.m_SummonHeroBattleShowInt32_hotfix.call(new object[] { this, selectHeroID }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; Hero hero = this.m_playerContext.GetHero(selectHeroID); string modelResPath = UIUtility.GetHeroModelAssetPath(hero); this.m_task.CustomLoadAsset(delegate { this.m_task.CollectAssetWrap(modelResPath); }, delegate { GameObject asset = AssetUtility.Instance.GetAsset <GameObject>(modelResPath); GameObject gameObject = GameObjectUtility.CloneGameObject(asset, this.m_charNode.transform); EventTriggerListener eventTriggerListener = gameObject.AddComponent <EventTriggerListener>(); eventTriggerListener.onClick = (EventTriggerListener.VoidDelegate)Delegate.Combine(eventTriggerListener.onClick, new EventTriggerListener.VoidDelegate(this.OnCharClick)); gameObject.AddComponent <BoxCollider>(); this.m_roleSkeleton = gameObject.GetComponent <SkeletonAnimation>(); this.PlayAnimation(this.m_roleSkeleton, "idle", true); this.m_charNode.transform.position = this.arPlaneTrace.centerPos; this.m_charNode.transform.rotation = this.arPlaneTrace.centerRotation; }); }
// Token: 0x0600BE80 RID: 48768 RVA: 0x003535C0 File Offset: 0x003517C0 public void SummonHeroDrawShow(int selectHeroID) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SummonHeroDrawShowInt32_hotfix != null) { this.m_SummonHeroDrawShowInt32_hotfix.call(new object[] { this, selectHeroID }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; Hero hero = this.m_playerContext.GetHero(selectHeroID); string modelResPath = UIUtility.GetHeroCharAssetPath(hero); this.m_task.CustomLoadAsset(delegate { this.m_task.CollectAssetWrap(modelResPath); }, delegate { GameObject asset = AssetUtility.Instance.GetAsset <GameObject>(modelResPath); GameObject gameObject = GameObjectUtility.CloneGameObject(asset, this.m_charDrawNode.transform); this.m_roleSkeleton = gameObject.GetComponent <SkeletonAnimation>(); this.PlayAnimation(this.m_roleSkeleton, "idle_Normal", true); this.m_charDrawNode.transform.position = this.arPlaneTrace.centerPos; this.m_charDrawNode.transform.rotation = this.arPlaneTrace.centerRotation; }); }
// Token: 0x0600F69F RID: 63135 RVA: 0x004134FC File Offset: 0x004116FC public void Init() { GuildMassiveCombatInfo currentGuildMassiveCombatInfo = this.m_playerContext.GetCurrentGuildMassiveCombatInfo(); ConfigDataGuildMassiveCombatDifficultyInfo configDataGuildMassiveCombatDifficultyInfo = this.m_configDataLoader.GetConfigDataGuildMassiveCombatDifficultyInfo(currentGuildMassiveCombatInfo.Difficulty); List <Rewards> rewardsInfo = configDataGuildMassiveCombatDifficultyInfo.RewardsInfo; foreach (Rewards reward in rewardsInfo) { GameObject go = GameObjectUtility.CloneGameObject(this.m_itemPrefab, this.m_rewardContent.transform); MassiveCombatGuildRewardItemUIController massiveCombatGuildRewardItemUIController = GameObjectUtility.AddControllerToGameObject <MassiveCombatGuildRewardItemUIController>(go); massiveCombatGuildRewardItemUIController.Init(reward, configDataGuildMassiveCombatDifficultyInfo.BonusGuildCoins); this.m_rewardItemUIControllerList.Add(massiveCombatGuildRewardItemUIController); } this.m_total.text = string.Format("{0}%", this.m_playerContext.GetGuildMassiveCombatEliminateRate()); }
// Token: 0x0600BE81 RID: 48769 RVA: 0x0035367C File Offset: 0x0035187C public void SummonHeroTeamShow() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SummonHeroTeamShow_hotfix != null) { this.m_SummonHeroTeamShow_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_task.CustomLoadAsset(delegate { foreach (BusinessCardHeroSet businessCardHeroSet in this.m_playerContext.BusinessCard.SetInfo.Heroes) { Hero hero = this.m_playerContext.GetHero(businessCardHeroSet.HeroId); string heroModelAssetPath = UIUtility.GetHeroModelAssetPath(hero); this.m_task.CollectAssetWrap(heroModelAssetPath); } }, delegate { int num = 0; while (num < this.m_playerContext.BusinessCard.SetInfo.Heroes.Count && num < this.m_charGroupNode.transform.childCount) { BusinessCardHeroSet businessCardHeroSet = this.m_playerContext.BusinessCard.SetInfo.Heroes[num]; Hero hero = this.m_playerContext.GetHero(businessCardHeroSet.HeroId); string heroModelAssetPath = UIUtility.GetHeroModelAssetPath(hero); GameObject asset = AssetUtility.Instance.GetAsset <GameObject>(heroModelAssetPath); Transform child = this.m_charGroupNode.transform.GetChild(num); GameObject gameObject = GameObjectUtility.CloneGameObject(asset, child); EventTriggerListener eventTriggerListener = gameObject.AddComponent <EventTriggerListener>(); eventTriggerListener.onClick = (EventTriggerListener.VoidDelegate)Delegate.Combine(eventTriggerListener.onClick, new EventTriggerListener.VoidDelegate(this.OnCharClick)); SkeletonAnimation component = gameObject.GetComponent <SkeletonAnimation>(); this.PlayAnimation(component, businessCardHeroSet.Action, true); this.SetCharDirection(child.gameObject, businessCardHeroSet.Direction == HeroDirectionType.Right); this.m_roleSkeletonList.Add(gameObject.GetComponent <SkeletonAnimation>()); num++; } this.m_charGroupNode.transform.position = this.arPlaneTrace.centerPos; this.m_charGroupNode.transform.rotation = this.arPlaneTrace.centerRotation; }); }
// Token: 0x0600F1BD RID: 61885 RVA: 0x0040383C File Offset: 0x00401A3C protected override void OnBindFiledsCompleted() { base.OnBindFiledsCompleted(); this.m_configDataLoader = (GameManager.Instance.ConfigDataLoader as IConfigDataLoader); this.m_playerContext = (GameManager.Instance.PlayerContext as ProjectLPlayerContext); this.m_closeButton.onClick.AddListener(new UnityAction(this.OnCloseClick)); this.m_bgButton.onClick.AddListener(new UnityAction(this.OnBgClick)); for (int i = 0; i < this.m_rankingInfinityGrid.MinAmount; i++) { GameObject go = GameObjectUtility.CloneGameObject(this.m_contributionRankingItemPrefab, this.m_rankingInfinityGrid.transform); GuildContributionRankingItemUIController guildContributionRankingItemUIController = GameObjectUtility.AddControllerToGameObject <GuildContributionRankingItemUIController>(go); } InfinityGridLayoutGroup rankingInfinityGrid = this.m_rankingInfinityGrid; rankingInfinityGrid.updateChildrenCallback = (InfinityGridLayoutGroup.UpdateChildrenCallbackDelegate)Delegate.Combine(rankingInfinityGrid.updateChildrenCallback, new InfinityGridLayoutGroup.UpdateChildrenCallbackDelegate(this.OnItemUpdate)); GuildMassiveCombatInfo currentGuildMassiveCombatInfo = this.m_playerContext.GetCurrentGuildMassiveCombatInfo(); this.m_guildMassiveCombatMemberList = currentGuildMassiveCombatInfo.Members; this.m_guildMassiveCombatMemberList.Sort(new Comparison <GuildMassiveCombatMemberInfo>(this.RankCompare)); }
public static int CloneGameObject_s(IntPtr l) { int result; try { GameObject cloneObj; LuaObject.checkType <GameObject>(l, 1, out cloneObj); Transform parent; LuaObject.checkType <Transform>(l, 2, out parent); GameObject o = GameObjectUtility.CloneGameObject(cloneObj, parent); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x0600F697 RID: 63127 RVA: 0x004131E8 File Offset: 0x004113E8 public void Init() { GuildMassiveCombatInfo currentGuildMassiveCombatInfo = this.m_playerContext.GetCurrentGuildMassiveCombatInfo(); ConfigDataGuildMassiveCombatDifficultyInfo configDataGuildMassiveCombatDifficultyInfo = this.m_configDataLoader.GetConfigDataGuildMassiveCombatDifficultyInfo(currentGuildMassiveCombatInfo.Difficulty); List <ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo> list = new List <ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo>(); foreach (KeyValuePair <int, ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo> keyValuePair in this.m_configDataLoader.GetAllConfigDataGuildMassiveCombatIndividualPointsRewardsInfo()) { if (keyValuePair.Value.RewardGroupID == configDataGuildMassiveCombatDifficultyInfo.IndividualPointsRewardsInfo) { list.Add(keyValuePair.Value); } } for (int i = 0; i < list.Count; i++) { GameObject go = GameObjectUtility.CloneGameObject(this.m_itemPrefab, this.m_rewardContent.transform); MassiveCombatPersonRewardItemUIController massiveCombatPersonRewardItemUIController = GameObjectUtility.AddControllerToGameObject <MassiveCombatPersonRewardItemUIController>(go); massiveCombatPersonRewardItemUIController.Init(list[i]); this.m_rewardItemUIControllerList.Add(massiveCombatPersonRewardItemUIController); } GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = this.m_playerContext.GetGuildPlayerMassiveCombatInfo(); this.m_total.text = guildPlayerMassiveCombatInfo.Points.ToString(); }