コード例 #1
0
        // Token: 0x060108B1 RID: 67761 RVA: 0x0044D7BC File Offset: 0x0044B9BC
        private void OnPeofermanceVoiceButtonClick(FettersInformationVoiceItemUIController ctrl)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnPeofermanceVoiceButtonClickFettersInformationVoiceItemUIController_hotfix != null)
            {
                this.m_OnPeofermanceVoiceButtonClickFettersInformationVoiceItemUIController_hotfix.call(new object[]
                {
                    this,
                    ctrl
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (this.EventOnVoiceItemClick != null)
            {
                this.EventOnVoiceItemClick(ctrl.HeroPerformanceInfo.ID);
            }
            ctrl.InitVoiceItem(ctrl.HeroPerformanceInfo.ID);
            bool active = false;

            foreach (FettersInformationVoiceItemUIController fettersInformationVoiceItemUIController in this.voiceCtrlList)
            {
                if (fettersInformationVoiceItemUIController.IsNewTagActive())
                {
                    active = true;
                    break;
                }
            }
            this.m_toggleVoiceRedPoint.SetActive(active);
        }
        // Token: 0x0600E6DF RID: 59103 RVA: 0x003DE80C File Offset: 0x003DCA0C
        private void __callDele_EventOnVoiceButtonClick(FettersInformationVoiceItemUIController obj)
        {
            Action <FettersInformationVoiceItemUIController> eventOnVoiceButtonClick = this.EventOnVoiceButtonClick;

            if (eventOnVoiceButtonClick != null)
            {
                eventOnVoiceButtonClick(obj);
            }
        }
コード例 #3
0
        // Token: 0x060108AF RID: 67759 RVA: 0x0044D5A4 File Offset: 0x0044B7A4
        private void UpdateHeroVoiceList()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateHeroVoiceList_hotfix != null)
            {
                this.m_UpdateHeroVoiceList_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_voiceCVNameText.text    = this.m_hero.HeroInfo.GetCharImageInfo(this.m_hero.StarLevel).CVName;
            GameObjectUtility.DestroyChildren(this.m_voiceContent);
            if (this.m_heroInformationInfo == null)
            {
                return;
            }
            this.voiceCtrlList.Clear();
            ConfigDataPerformanceInfo configDataPerformanceInfo = this.m_configDataLoader.GetConfigDataPerformanceInfo(this.m_heroInformationInfo.HeroPerformance_ID);

            if (configDataPerformanceInfo == null)
            {
                return;
            }
            GameObject assetInContainer = base.GetAssetInContainer <GameObject>("VoiceItem");

            foreach (int heroPerformanceId in configDataPerformanceInfo.HeroPerformances_ID)
            {
                GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(assetInContainer);
                PrefabControllerCreater.CreateAllControllers(gameObject);
                FettersInformationVoiceItemUIController component = gameObject.GetComponent <FettersInformationVoiceItemUIController>();
                component.InitVoiceItem(heroPerformanceId);
                component.EventOnVoiceButtonClick += this.OnPeofermanceVoiceButtonClick;
                gameObject.transform.SetParent(this.m_voiceContent.transform, false);
                if (!this.voiceCtrlList.Contains(component))
                {
                    this.voiceCtrlList.Add(component);
                }
            }
        }
 // Token: 0x0600E6F4 RID: 59124 RVA: 0x003DEB38 File Offset: 0x003DCD38
 public void __clearDele_EventOnVoiceButtonClick(FettersInformationVoiceItemUIController obj)
 {
     this.m_owner.__clearDele_EventOnVoiceButtonClick(obj);
 }
 // Token: 0x0600E6E3 RID: 59107 RVA: 0x003DEA20 File Offset: 0x003DCC20
 public LuaExportHelper(FettersInformationVoiceItemUIController owner)
 {
     this.m_owner = owner;
 }
 // Token: 0x0600E6E0 RID: 59104 RVA: 0x003DE830 File Offset: 0x003DCA30
 private void __clearDele_EventOnVoiceButtonClick(FettersInformationVoiceItemUIController obj)
 {
     this.EventOnVoiceButtonClick = null;
 }
コード例 #7
0
 // Token: 0x06010904 RID: 67844 RVA: 0x0044E320 File Offset: 0x0044C520
 public void OnPeofermanceVoiceButtonClick(FettersInformationVoiceItemUIController ctrl)
 {
     this.m_owner.OnPeofermanceVoiceButtonClick(ctrl);
 }