// Token: 0x06012670 RID: 75376 RVA: 0x004B99DC File Offset: 0x004B7BDC public void CreateItemListPool(int poolSize) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateItemListPoolInt32_hotfix != null) { this.m_CreateItemListPoolInt32_hotfix.call(new object[] { this, poolSize }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; PoolInfo poolInfoByName = this.RankListItemPool.GetPoolInfoByName("RankingListItemUIPrefab"); poolInfoByName.poolSize = poolSize; poolInfoByName.prefab = this.m_itemTemplete; this.RankListItemPool.CreatePools(); Stack <PoolObject> objectPoolByName = this.RankListItemPool.GetObjectPoolByName("RankingListItemUIPrefab"); foreach (PoolObject poolObject in objectPoolByName) { RankingListItemUIController component = poolObject.GetComponent <RankingListItemUIController>(); component.Init(); component.RegisterItemNeedFillEvent(new Action <UIControllerBase>(this.OnRankItemFill)); } }
// Token: 0x06012673 RID: 75379 RVA: 0x004B9CC0 File Offset: 0x004B7EC0 protected void OnRankItemFill(UIControllerBase itemCtrl) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnRankItemFillUIControllerBase_hotfix != null) { this.m_OnRankItemFillUIControllerBase_hotfix.call(new object[] { this, itemCtrl }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; RankingListItemUIController rankingListItemUIController = itemCtrl as RankingListItemUIController; int itemIndex = rankingListItemUIController.GetItemIndex(); if (itemIndex >= this.m_cachedRankList.PlayerList.Count) { return; } RankingTargetPlayerInfo rankingTargetPlayerInfo = this.m_cachedRankList.PlayerList[itemIndex]; string heroName = string.Empty; if (this.m_cachedRankList.Type == RankingListType.ChampionHero) { IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataHeroInfo configDataHeroInfo = configDataLoader.GetConfigDataHeroInfo(rankingTargetPlayerInfo.PlayerInfo.ChampionHeroId); if (configDataHeroInfo != null) { heroName = configDataHeroInfo.Name; } } rankingListItemUIController.UpdateItemInfo(this.m_cachedRankList.Type, rankingTargetPlayerInfo.PlayerInfo.HeadIcon, itemIndex + 1, rankingTargetPlayerInfo.PlayerInfo.Level, rankingTargetPlayerInfo.PlayerInfo.Name, rankingTargetPlayerInfo.Score, heroName); }
// Token: 0x0601265B RID: 75355 RVA: 0x004B97F4 File Offset: 0x004B79F4 public LuaExportHelper(RankingListItemUIController owner) { this.m_owner = owner; }