private void RefreshUI_initGrid(UIGrid grid, PVPHeroCard template, List <ReadyPlayerSampleInfo> list) { GridHelper.FillGrid <PVPHeroCard>(grid, template, (list == null) ? 0 : list.Count, delegate(int idx, PVPHeroCard comp) { PVPCardInfo pVPCardInfo = this.CreatePVPCardInfo(list[idx]); comp.name = pVPCardInfo.SummonerName; comp.InitInfo = pVPCardInfo; if (pVPCardInfo.userID == Singleton <PvpManager> .Instance.MyLobbyUserId) { comp.ShowDelay(); } this.dic_com[list[idx].newUid] = comp; }); grid.Reposition(); }
private void OnLoadFinish(PVPHeroCard com) { int userID = com.InitInfo.userID; if (!this.list_finishLoadList.Contains(userID) && this.dic_com.Keys.Contains(userID)) { this.list_finishLoadList.Add(userID); if (this.list_finishLoadList.Count == this.dic_com.Count) { if (this.task_checkProgress != null) { this.task_checkProgress.Stop(); } MobaMessageManager.DispatchMsg((ClientMsg)21008, null, 0f); } } }