Exemplo n.º 1
0
        // Token: 0x06010D44 RID: 68932 RVA: 0x0045CCE4 File Offset: 0x0045AEE4
        private void OnSkillItemClick()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnSkillItemClick_hotfix != null)
            {
                this.m_OnSkillItemClick_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            SkillDescUIController skillDescUIController = null;
            bool flag = false;

            for (int i = 0; i < this.m_descParent.transform.childCount; i++)
            {
                Transform child = this.m_descParent.transform.GetChild(i);
                if (child.name == "CommonSkillDesc")
                {
                    flag = true;
                    skillDescUIController = child.gameObject.GetComponent <SkillDescUIController>();
                    break;
                }
            }
            if (!flag)
            {
                GameObject assetInContainer = base.GetAssetInContainer <GameObject>("commonSkillDesc");
                GameObject gameObject       = UnityEngine.Object.Instantiate <GameObject>(assetInContainer);
                PrefabControllerCreater.CreateAllControllers(gameObject);
                skillDescUIController = gameObject.GetComponent <SkillDescUIController>();
                gameObject.transform.SetParent(this.m_descParent.transform, false);
                gameObject.name = "CommonSkillDesc";
            }
            skillDescUIController.InitSkillDesc(this.m_skillInfo);
        }
        // Token: 0x0601090C RID: 67852 RVA: 0x0044E768 File Offset: 0x0044C968
        private void OnSkillItemClick(HeroSkillItemUIController skillCtrl)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnSkillItemClickHeroSkillItemUIController_hotfix != null)
            {
                this.m_OnSkillItemClickHeroSkillItemUIController_hotfix.call(new object[]
                {
                    this,
                    skillCtrl
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            SkillDescUIController component = this.m_infoSkillDescGo.GetComponent <SkillDescUIController>();

            if (component == null)
            {
                PrefabControllerCreater.CreateAllControllers(this.m_infoSkillDescGo);
                component = this.m_infoSkillDescGo.GetComponent <SkillDescUIController>();
                component.EventOnClose += this.CloseSkillDesc;
            }
            component.InitSkillDesc(skillCtrl.m_skillInfo);
            if (this.m_curSelectedSkillCtrl != null)
            {
                this.m_curSelectedSkillCtrl.SetChoosenImageActive(false);
            }
            skillCtrl.SetChoosenImageActive(true);
            this.m_curSelectedSkillCtrl = skillCtrl;
            if (this.m_infoSkillDescGo.activeSelf)
            {
                bool flag = this.m_curSelectSkillIds.Contains(skillCtrl.m_skillInfo.ID);
                this.m_infoSkillDescLoadButton.gameObject.SetActive(!flag);
                this.m_infoSkillDescUnLoadButton.gameObject.SetActive(flag);
            }
        }
Exemplo n.º 3
0
 // Token: 0x0600D779 RID: 55161 RVA: 0x003AAAC0 File Offset: 0x003A8CC0
 public LuaExportHelper(SkillDescUIController owner)
 {
     this.m_owner = owner;
 }