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();
 }
Exemple #2
0
    private void RefreshUI_init()
    {
        PVPCardInfo initInfo = this.InitInfo;

        this.tex_heroIcon.mainTexture = initInfo.texture;
        this.label_heroName.text      = initInfo.HeroName;
        this.label_summonerName.text  = initInfo.SummonerName;
        if (initInfo.lastCharmRank <= 50)
        {
            this.label_summonerName.gameObject.GetComponent <AllochroicLabelChecker>().RenderLabel(initInfo.lastCharmRank);
        }
        this.label_progress.text = "0%";
        ToolsFacade.Instance.GetLoadingFrame(initInfo.RankFrame, this.loadingFrame);
        this.RefreshUI_summonerSkill();
    }
Exemple #3
0
 public void ClearResources()
 {
     if (this.heroShowInfo != null)
     {
         this.heroShowInfo.ClearResources();
         this.heroShowInfo = null;
     }
     if (this.com_selectHeroSkillItem != null)
     {
         this.com_selectHeroSkillItem.ClearResources();
     }
     if (this.tex_heroIcon != null && this.tex_heroIcon.mainTexture != null)
     {
         Resources.UnloadAsset(this.tex_heroIcon.mainTexture);
     }
     if (this.SkillTexture != null && this.SkillTexture.mainTexture != null)
     {
         Resources.UnloadAsset(this.SkillTexture.mainTexture);
     }
 }