示例#1
0
        // Token: 0x0600BE37 RID: 48695 RVA: 0x00352768 File Offset: 0x00350968
        private void __callDele_EventOnSelectHeroItem(ARHeroCardUIController obj)
        {
            Action <ARHeroCardUIController> eventOnSelectHeroItem = this.EventOnSelectHeroItem;

            if (eventOnSelectHeroItem != null)
            {
                eventOnSelectHeroItem(obj);
            }
        }
示例#2
0
 // Token: 0x0600BDD0 RID: 48592 RVA: 0x00351898 File Offset: 0x0034FA98
 protected void OnHeroItemClick(ARHeroCardUIController ctrl)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnHeroItemClickARHeroCardUIController_hotfix != null)
     {
         this.m_OnHeroItemClickARHeroCardUIController_hotfix.call(new object[]
         {
             this,
             ctrl
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.SelectHero(ctrl.m_heroWrap);
     this.RefreshSelectHeroShow();
 }
示例#3
0
        // Token: 0x0600BDC7 RID: 48583 RVA: 0x00351190 File Offset: 0x0034F390
        protected override void OnBindFiledsCompleted()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
            {
                this.m_OnBindFiledsCompleted_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.OnBindFiledsCompleted();
            this.m_configDataLoader = (GameManager.Instance.ConfigDataLoader as IConfigDataLoader);
            this.m_playerContext    = (GameManager.Instance.PlayerContext as ProjectLPlayerContext);
            if (!this.m_playerContext.IsMe(this.m_playerContext.BusinessCard.UserId))
            {
                return;
            }
            this.m_battleTypeButton.onClick.AddListener(new UnityAction(this.OnBattleTypeShowClick));
            this.m_heroDrawButton.onClick.AddListener(new UnityAction(this.OnHeroDrawShowClick));
            this.m_teamShowButton.onClick.AddListener(new UnityAction(this.OnTeamShowClick));
            this.m_bgButton.onClick.AddListener(new UnityAction(this.OnBGButtonClick));
            for (int i = 0; i < this.m_heroListInfinityGrid.MinAmount; i++)
            {
                GameObject             gameObject             = UnityEngine.Object.Instantiate <GameObject>(this.m_heroListItemPrefab);
                ARHeroCardUIController arheroCardUIController = GameObjectUtility.AddControllerToGameObject <ARHeroCardUIController>(gameObject);
                arheroCardUIController.EventOnSelectHeroItem += this.OnHeroItemClick;
                gameObject.transform.SetParent(this.m_heroListInfinityGrid.transform, false);
                this.m_arHeroCardUIControllerList.Add(arheroCardUIController);
            }
            InfinityGridLayoutGroup heroListInfinityGrid = this.m_heroListInfinityGrid;

            heroListInfinityGrid.updateChildrenCallback = (InfinityGridLayoutGroup.UpdateChildrenCallbackDelegate)Delegate.Combine(heroListInfinityGrid.updateChildrenCallback, new InfinityGridLayoutGroup.UpdateChildrenCallbackDelegate(this.UpdateInfinityHeroItemCallback));
            List <Hero> heros = this.m_playerContext.GetHeros();

            heros.Sort((Hero left, Hero right) => right.HeroInfo.Rank - left.HeroInfo.Rank);
            foreach (Hero hero in heros)
            {
                ARHeroListUIController.HeroWrap heroWrap = new ARHeroListUIController.HeroWrap();
                heroWrap.hero = hero;
                this.m_heroWrapList.Add(heroWrap);
            }
            if (this.m_heroWrapList.Count > 0)
            {
                this.SelectHero(this.m_heroWrapList[0]);
            }
        }
示例#4
0
        // Token: 0x0600BDD1 RID: 48593 RVA: 0x0035191C File Offset: 0x0034FB1C
        private void UpdateInfinityHeroItemCallback(int index, Transform trans)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateInfinityHeroItemCallbackInt32Transform_hotfix != null)
            {
                this.m_UpdateInfinityHeroItemCallbackInt32Transform_hotfix.call(new object[]
                {
                    this,
                    index,
                    trans
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ARHeroListUIController.HeroWrap heroListItemInfo = this.m_heroWrapList[index];
            ARHeroCardUIController          component        = trans.GetComponent <ARHeroCardUIController>();

            component.SetHeroListItemInfo(heroListItemInfo);
        }
示例#5
0
 // Token: 0x0600BE1D RID: 48669 RVA: 0x00352200 File Offset: 0x00350400
 public void OnHeroItemClick(ARHeroCardUIController ctrl)
 {
     this.m_owner.OnHeroItemClick(ctrl);
 }
示例#6
0
 // Token: 0x0600BE4C RID: 48716 RVA: 0x00352A60 File Offset: 0x00350C60
 public void __clearDele_EventOnSelectHeroItem(ARHeroCardUIController obj)
 {
     this.m_owner.__clearDele_EventOnSelectHeroItem(obj);
 }
示例#7
0
 // Token: 0x0600BE3B RID: 48699 RVA: 0x00352948 File Offset: 0x00350B48
 public LuaExportHelper(ARHeroCardUIController owner)
 {
     this.m_owner = owner;
 }
示例#8
0
 // Token: 0x0600BE38 RID: 48696 RVA: 0x0035278C File Offset: 0x0035098C
 private void __clearDele_EventOnSelectHeroItem(ARHeroCardUIController obj)
 {
     this.EventOnSelectHeroItem = null;
 }