Example #1
0
        // Token: 0x0600CE0A RID: 52746 RVA: 0x0038B4F8 File Offset: 0x003896F8
        private void CreatePathItemList(List <GetPathData> getPathList, string getPathDesc)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreatePathItemListList ` 1String_hotfix != null)
            {
                this.m_CreatePathItemListList ` 1String_hotfix.call(new object[]
                {
                    this,
                    getPathList,
                    getPathDesc
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GameObjectUtility.DestroyChildren(this.m_contentObj);
            if (getPathList == null || getPathList.Count == 0)
            {
                this.m_tips.gameObject.SetActive(true);
                this.m_tipsText.text = getPathDesc;
                return;
            }
            this.m_tips.gameObject.SetActive(false);
            IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;

            foreach (GetPathData getPathData in getPathList)
            {
                if (getPathData.PathType == GetPathType.GetPathType_HeroDungeon)
                {
                    ConfigDataHeroDungeonLevelInfo configDataHeroDungeonLevelInfo = configDataLoader.GetConfigDataHeroDungeonLevelInfo(getPathData.ID);
                    if (configDataHeroDungeonLevelInfo == null)
                    {
                        continue;
                    }
                    ConfigDataHeroInformationInfo configDataHeroInformationInfo = configDataLoader.GetConfigDataHeroInformationInfo(configDataHeroDungeonLevelInfo.m_chapterId);
                    if (configDataHeroInformationInfo == null || !configDataHeroInformationInfo.IsDungeonLevelsUnLock)
                    {
                        continue;
                    }
                }
                GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.m_itemPrefab);
                GetPathItemUIController getPathItemUIController = GameObjectUtility.AddControllerToGameObject <GetPathItemUIController>(gameObject);
                getPathItemUIController.EventOnGotoButtonClick += this.OnGetPathItemGotoButtonClick;
                getPathItemUIController.SetGetPath(getPathData);
                gameObject.transform.SetParent(this.m_contentObj.transform, false);
            }
        }
 // Token: 0x0600CE70 RID: 52848 RVA: 0x0038C978 File Offset: 0x0038AB78
 public LuaExportHelper(GetPathItemUIController owner)
 {
     this.m_owner = owner;
 }