Ejemplo n.º 1
0
        private void OnHeroJobSelect(CUIEvent uiEvent)
        {
            int selectedIndex = uiEvent.m_srcWidget.GetComponent <CUIListScript>().GetSelectedIndex();

            this.m_heroJobType = (enHeroJobType)selectedIndex;
            this.RefreshHeroListObject(uiEvent.m_srcFormScript);
        }
Ejemplo n.º 2
0
        public void OnOpenHeroViewForm(CUIEvent uiEvent)
        {
            CUIFormScript script = Singleton <CUIManager> .GetInstance().OpenForm(s_heroViewFormPath, false, true);

            if (script != null)
            {
                this.m_selectHeroType = enHeroJobType.All;
                string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All");

                string str2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank");

                string str3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier");

                string str4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin");

                string str5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master");

                string str6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer");

                string str7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid");

                string[] titleList = new string[] { text, str2, str3, str4, str5, str6, str7 };
                CUICommonSystem.InitMenuPanel(script.transform.Find("Panel_Menu/List").gameObject, titleList, (int)this.m_selectHeroType);
                this.ResetHeroListData();
            }
        }
Ejemplo n.º 3
0
        private string GetJobName(enHeroJobType job)
        {
            switch (job)
            {
            case enHeroJobType.All:
                return(Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All"));

            case enHeroJobType.Tank:
                return(Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank"));

            case enHeroJobType.Soldier:
                return(Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier"));

            case enHeroJobType.Assassin:
                return(Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin"));

            case enHeroJobType.Master:
                return(Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master"));

            case enHeroJobType.Archer:
                return(Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer"));

            case enHeroJobType.Aid:
                return(Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid"));
            }
            return(null);
        }
Ejemplo n.º 4
0
        public static void OpenHeroChooseForm()
        {
            enHeroJobType all    = enHeroJobType.All;
            CUIFormScript script = Singleton <CUIManager> .GetInstance().OpenForm(s_ChooseHeroPath, false, true);

            GameObject widget  = script.GetWidget(2);
            GameObject listObj = script.GetWidget(0);

            if (listObj != null)
            {
                Utility.GetComponetInChild <CUIListElementScript>(widget, "ScrollRect/Content/ListElement_Template").m_onEnableEventID = enUIEventID.Ranking_HeroChg_Hero_Item_Enable;
            }
            if (listObj != null)
            {
                script.GetWidget(1).CustomSetActive(false);
                string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All");

                string str2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank");

                string str3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier");

                string str4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin");

                string str5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master");

                string str6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer");

                string str7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid");

                string[] titleList = new string[] { text, str2, str3, str4, str5, str6, str7 };
                CUICommonSystem.InitMenuPanel(listObj, titleList, (int)all);
                listObj.GetComponent <CUIListScript>().m_listSelectChangedEventID = enUIEventID.Ranking_HeroChg_Title_Click;
            }
        }
Ejemplo n.º 5
0
        public void OnHeroView_MenuSelect(CUIEvent uiEvent)
        {
            int selectedIndex = uiEvent.m_srcWidget.GetComponent <CUIListScript>().GetSelectedIndex();

            this.m_selectHeroType = (enHeroJobType)selectedIndex;
            this.ResetHeroListData();
        }
        private void OnOpenChangeHeroForm(CUIEvent uiEvent)
        {
            CUIFormScript script = Singleton <CUIManager> .GetInstance().OpenForm(s_ChooseHeroPath, false, true);

            if (null != script)
            {
                this.m_curHeroJob = enHeroJobType.All;
                GameObject widget = script.GetWidget(0);
                if (widget != null)
                {
                    GameObject obj3 = script.GetWidget(1);
                    if (obj3 != null)
                    {
                        obj3.GetComponent <Toggle>().isOn = this.m_bOwnHeroFlag;
                    }
                    string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All");

                    string str2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank");

                    string str3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier");

                    string str4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin");

                    string str5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master");

                    string str6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer");

                    string str7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid");

                    string[] titleList = new string[] { text, str2, str3, str4, str5, str6, str7 };
                    CUICommonSystem.InitMenuPanel(widget, titleList, (int)this.m_curHeroJob);
                }
            }
        }
Ejemplo n.º 7
0
        public void Draw(CUIFormScript form)
        {
            if (form != null)
            {
                GameObject gameObject = form.transform.Find("pnlBodyBg/pnlBuyHero").gameObject;
                if (gameObject != null)
                {
                    gameObject.CustomSetActive(true);
                    this.m_heroJobType = enHeroJobType.All;
                    string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All");

                    string str2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank");

                    string str3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier");

                    string str4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin");

                    string str5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master");

                    string str6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer");

                    string str7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid");

                    string[] titleList = new string[] { text, str2, str3, str4, str5, str6, str7 };
                    CUICommonSystem.InitMenuPanel(gameObject.transform.Find("MenuList").gameObject, titleList, (int)this.m_heroJobType);
                }
            }
        }
Ejemplo n.º 8
0
        public void OnOpenHeroViewForm(CUIEvent uiEvent)
        {
            CUICommonSystem.ResetLobbyFormFadeRecover();
            CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(CHeroOverviewSystem.s_heroViewFormPath, false, true);

            if (cUIFormScript == null)
            {
                return;
            }
            Singleton <CLobbySystem> .GetInstance().SetTopBarPriority(enFormPriority.Priority0);

            this.m_selectHeroType = enHeroJobType.All;
            CMallSortHelper.CreateHeroViewSorter().SetSortType(this.m_heroSortType);
            this.ResetHeroListData(true);
            string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All");

            string text2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank");

            string text3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier");

            string text4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin");

            string text5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master");

            string text6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer");

            string text7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid");

            string[] titleList = new string[]
            {
                text,
                text2,
                text3,
                text4,
                text5,
                text6,
                text7
            };
            GameObject gameObject = cUIFormScript.transform.Find("Panel_Menu/List").gameObject;

            CUICommonSystem.InitMenuPanel(gameObject, titleList, (int)this.m_selectHeroType, true);
            this.RefreshHeroOwnFlag();
            this.ResetHeroSortTypeList();
            GameObject widget = cUIFormScript.GetWidget(4);

            Singleton <CUINewFlagSystem> .instance.AddNewFlag(widget, enNewFlagKey.New_HeroOverViewOpenStoryUrl_V14, enNewFlagPos.enTopRight, 0.8f, 0f, 0f, enNewFlagType.enNewFlag);

            CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_HeroListBtn);
            if (CSysDynamicBlock.bLobbyEntryBlocked)
            {
                Transform transform = cUIFormScript.transform.FindChild("Panel_Hero/Panel_Hero_TitleBg/BtnStoryWeb");
                if (transform != null)
                {
                    transform.gameObject.CustomSetActive(false);
                }
            }
        }
Ejemplo n.º 9
0
        private void RealIndexGetReady(bool forceUpdate = false)
        {
            if (!forceUpdate && this._curFilterJob == this._curJobView && this._curFilterMenuPage == this._curMenuPage && ((this._curFilterMenuPage == GiftCenter.MenuPage.Hero && this._curFilterHeroSortType == this._curHeroSortType) || (this._curFilterMenuPage == GiftCenter.MenuPage.Skin && this._curFilterSkinSortType == this._curSkinSortType)))
            {
                return;
            }
            this._curFilterJob      = this._curJobView;
            this._curFilterMenuPage = this._curMenuPage;
            int num = 0;

            if (this._curMenuPage == GiftCenter.MenuPage.Skin)
            {
                this._curFilterSkinSortType = this._curSkinSortType;
                this.CleanSortSkinList();
                for (int i = 0; i < this._skinTotalNum; i++)
                {
                    ResHeroSkin    resHeroSkin = this._skinList[i];
                    ResHeroCfgInfo dataByKey   = GameDataMgr.heroDatabin.GetDataByKey(resHeroSkin.dwHeroID);
                    if (dataByKey.bMainJob == (byte)this._curJobView || dataByKey.bMinorJob == (byte)this._curJobView)
                    {
                        if (num < this._filterTempList.get_Count())
                        {
                            this._filterTempList.set_Item(num, i);
                        }
                        else
                        {
                            this._filterTempList.Add(i);
                        }
                        num++;
                    }
                }
                this._tempListNum = num;
            }
            else
            {
                this._curFilterHeroSortType = this._curHeroSortType;
                this.CleanSortHeroList();
                for (int j = 0; j < this._heroTotalNum; j++)
                {
                    ResHeroCfgInfo resHeroCfgInfo = this._heroList[j];
                    if (resHeroCfgInfo.bMainJob == (byte)this._curJobView || resHeroCfgInfo.bMinorJob == (byte)this._curJobView)
                    {
                        if (num < this._filterTempList.get_Count())
                        {
                            this._filterTempList.set_Item(num, j);
                        }
                        else
                        {
                            this._filterTempList.Add(j);
                        }
                        num++;
                    }
                }
                this._tempListNum = num;
            }
        }
Ejemplo n.º 10
0
        private void OnHeroTypeListSelect(CUIEvent uiEvent)
        {
            CUIListScript srcWidgetScript = (CUIListScript)uiEvent.m_srcWidgetScript;

            if (srcWidgetScript != null)
            {
                this.m_curHeroJob = (enHeroJobType)srcWidgetScript.GetSelectedIndex();
                this.RefreshHeroListPanel();
            }
        }
Ejemplo n.º 11
0
 private void RealIndexGetReady(bool forceUpdate = false)
 {
     if (((forceUpdate || (this._curFilterJob != this._curJobView)) || (this._curFilterMenuPage != this._curMenuPage)) || (((this._curFilterMenuPage != MenuPage.Hero) || (this._curFilterHeroSortType != this._curHeroSortType)) && ((this._curFilterMenuPage != MenuPage.Skin) || (this._curFilterSkinSortType != this._curSkinSortType))))
     {
         this._curFilterJob      = this._curJobView;
         this._curFilterMenuPage = this._curMenuPage;
         int num = 0;
         if (this._curMenuPage == MenuPage.Skin)
         {
             this._curFilterSkinSortType = this._curSkinSortType;
             this.CleanSortSkinList();
             for (int i = 0; i < this._skinTotalNum; i++)
             {
                 ResHeroSkin    skin      = this._skinList[i];
                 ResHeroCfgInfo dataByKey = GameDataMgr.heroDatabin.GetDataByKey(skin.dwHeroID);
                 if ((dataByKey.bMainJob == ((byte)this._curJobView)) || (dataByKey.bMinorJob == ((byte)this._curJobView)))
                 {
                     if (num < this._filterTempList.Count)
                     {
                         this._filterTempList[num] = i;
                     }
                     else
                     {
                         this._filterTempList.Add(i);
                     }
                     num++;
                 }
             }
             this._tempListNum = num;
         }
         else
         {
             this._curFilterHeroSortType = this._curHeroSortType;
             this.CleanSortHeroList();
             for (int j = 0; j < this._heroTotalNum; j++)
             {
                 ResHeroCfgInfo info2 = this._heroList[j];
                 if ((info2.bMainJob == ((byte)this._curJobView)) || (info2.bMinorJob == ((byte)this._curJobView)))
                 {
                     if (num < this._filterTempList.Count)
                     {
                         this._filterTempList[num] = j;
                     }
                     else
                     {
                         this._filterTempList.Add(j);
                     }
                     num++;
                 }
             }
             this._tempListNum = num;
         }
     }
 }
Ejemplo n.º 12
0
        public void OnHeroView_MenuSelect(CUIEvent uiEvent)
        {
            CUIListScript component     = uiEvent.m_srcWidget.GetComponent <CUIListScript>();
            int           selectedIndex = component.GetSelectedIndex();

            if (selectedIndex != (int)this.m_selectHeroType)
            {
                this.m_selectHeroType = (enHeroJobType)selectedIndex;
                this.ResetHeroListData(true);
            }
        }
Ejemplo n.º 13
0
 private void OnSubMenuChanged(CUIEvent uiEvent)
 {
     if (this._subMenuList != null)
     {
         int selectedIndex = this._subMenuList.GetSelectedIndex();
         this._curJobView = (enHeroJobType)selectedIndex;
         if (this._curJobView != enHeroJobType.All)
         {
             this.RealIndexGetReady(false);
         }
         this.UpdateItemList();
     }
 }
Ejemplo n.º 14
0
 private void InitMenuAndSubMenu()
 {
     if ((this._heroTotalNum > 0) && (this._skinTotalNum > 0))
     {
         this._menuList.SetElementAmount(2);
         this._curMenuPage = MenuPage.Hero;
         CUIListElementScript elemenet = this._menuList.GetElemenet(1);
         if (elemenet != null)
         {
             elemenet.gameObject.transform.FindChild("Text").gameObject.GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText("Mall_Skin_Buy_Tab");
         }
         elemenet = this._menuList.GetElemenet(0);
         if (elemenet != null)
         {
             elemenet.gameObject.transform.FindChild("Text").gameObject.GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText("Mall_Hero_Buy_Tab");
         }
     }
     else if (this._heroTotalNum > 0)
     {
         this._menuList.SetElementAmount(1);
         this._curMenuPage = MenuPage.Hero;
         CUIListElementScript script2 = this._menuList.GetElemenet(0);
         if (script2 != null)
         {
             script2.gameObject.transform.FindChild("Text").gameObject.GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText("Mall_Hero_Buy_Tab");
         }
     }
     else
     {
         this._menuList.SetElementAmount(1);
         this._curMenuPage = MenuPage.Skin;
         CUIListElementScript script3 = this._menuList.GetElemenet(0);
         if (script3 != null)
         {
             script3.gameObject.transform.FindChild("Text").gameObject.GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText("Mall_Skin_Buy_Tab");
         }
     }
     this._menuList.SelectElement(0, false);
     this._subMenuList.SetElementAmount(7);
     for (int i = 0; i < 7; i++)
     {
         CUIListElementScript script4 = this._subMenuList.GetElemenet(i);
         if (script4 != null)
         {
             script4.gameObject.transform.FindChild("Text").gameObject.GetComponent <Text>().text = this.GetJobName((enHeroJobType)i);
         }
     }
     this._subMenuList.SelectElement(0, false);
     this._curJobView = enHeroJobType.All;
     this.SetSortContent();
 }
Ejemplo n.º 15
0
        public static void OpenHeroChooseForm()
        {
            enHeroJobType selectIndex   = enHeroJobType.All;
            CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(RankingView.s_ChooseHeroPath, false, true);

            GameObject widget  = cUIFormScript.GetWidget(2);
            GameObject widget2 = cUIFormScript.GetWidget(0);

            if (widget2 != null)
            {
                CUIListElementScript componetInChild = Utility.GetComponetInChild <CUIListElementScript>(widget, "ScrollRect/Content/ListElement_Template");
                componetInChild.m_onEnableEventID = enUIEventID.Ranking_HeroChg_Hero_Item_Enable;
            }
            if (widget2 != null)
            {
                GameObject widget3 = cUIFormScript.GetWidget(1);
                widget3.CustomSetActive(false);
                string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All");

                string text2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank");

                string text3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier");

                string text4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin");

                string text5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master");

                string text6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer");

                string text7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid");

                string[] titleList = new string[]
                {
                    text,
                    text2,
                    text3,
                    text4,
                    text5,
                    text6,
                    text7
                };
                CUICommonSystem.InitMenuPanel(widget2, titleList, (int)selectIndex, true);
                CUIListScript component = widget2.GetComponent <CUIListScript>();
                component.m_listSelectChangedEventID = enUIEventID.Ranking_HeroChg_Title_Click;
            }
        }
Ejemplo n.º 16
0
        private void OnOpenChangeHeroForm(CUIEvent uiEvent)
        {
            CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(CSymbolRecommendController.s_ChooseHeroPath, false, true);

            if (null == cUIFormScript)
            {
                return;
            }
            this.m_curHeroJob = enHeroJobType.All;
            GameObject widget = cUIFormScript.GetWidget(0);

            if (widget != null)
            {
                GameObject widget2 = cUIFormScript.GetWidget(1);
                if (widget2 != null)
                {
                    widget2.GetComponent <Toggle>().isOn = this.m_bOwnHeroFlag;
                }
                string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All");

                string text2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank");

                string text3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier");

                string text4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin");

                string text5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master");

                string text6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer");

                string text7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid");

                string[] titleList = new string[]
                {
                    text,
                    text2,
                    text3,
                    text4,
                    text5,
                    text6,
                    text7
                };
                CUICommonSystem.InitMenuPanel(widget, titleList, (int)this.m_curHeroJob, true);
            }
        }
Ejemplo n.º 17
0
        private void ResetHeroList(enHeroJobType jobType, bool bOwn)
        {
            this.m_heroList.Clear();
            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            DebugHelper.Assert(masterRoleInfo != null, "CSymbolRcommendController ResetHeroList role is null");
            if (masterRoleInfo != null)
            {
                ListView <ResHeroCfgInfo> allHeroList = CHeroDataFactory.GetAllHeroList();
                for (int i = 0; i < allHeroList.Count; i++)
                {
                    if ((((jobType == enHeroJobType.All) || (allHeroList[i].bMainJob == ((byte)jobType))) || (allHeroList[i].bMinorJob == ((byte)jobType))) && (!bOwn || masterRoleInfo.IsHaveHero(allHeroList[i].dwCfgID, false)))
                    {
                        this.m_heroList.Add(allHeroList[i]);
                    }
                }
            }
        }
Ejemplo n.º 18
0
        public void OnOpenHeroViewForm(CUIEvent uiEvent)
        {
            CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(CHeroOverviewSystem.s_heroViewFormPath, false, true);

            if (cUIFormScript == null)
            {
                return;
            }
            Singleton <CLobbySystem> .GetInstance().SetTopBarPriority(enFormPriority.Priority0);

            this.m_selectHeroType = enHeroJobType.All;
            CMallSortHelper.CreateHeroViewSorter().SetSortType(this.m_heroSortType);
            this.ResetHeroListData(true);
            string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All");

            string text2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank");

            string text3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier");

            string text4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin");

            string text5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master");

            string text6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer");

            string text7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid");

            string[] titleList = new string[]
            {
                text,
                text2,
                text3,
                text4,
                text5,
                text6,
                text7
            };
            GameObject gameObject = cUIFormScript.transform.Find("Panel_Menu/List").gameObject;

            CUICommonSystem.InitMenuPanel(gameObject, titleList, (int)this.m_selectHeroType, true);
            this.RefreshHeroOwnFlag();
            this.ResetHeroSortTypeList();
            CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_HeroListBtn);
        }
        public void Draw(CUIFormScript form)
        {
            if (form == null)
            {
                return;
            }
            GameObject gameObject = form.transform.Find("pnlBodyBg/pnlBuyHero").gameObject;

            if (gameObject != null)
            {
                gameObject.CustomSetActive(true);
                this.m_heroJobType = enHeroJobType.All;
                string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All");

                string text2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank");

                string text3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier");

                string text4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin");

                string text5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master");

                string text6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer");

                string text7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid");

                string[] titleList = new string[]
                {
                    text,
                    text2,
                    text3,
                    text4,
                    text5,
                    text6,
                    text7
                };
                Transform transform = gameObject.transform.Find("MenuList");
                this.RefreshHeroOwnFlag();
                CUICommonSystem.InitMenuPanel(transform.gameObject, titleList, (int)this.m_heroJobType, true);
            }
        }