Beispiel #1
0
    protected override void Init()
    {
        base.Init();
        goodsMultList = transform.FindComponent <GUISingleMultList>("RankListScrollView/GoodsMultList");
        //goodMyIconWgt = transform.FindComponent<UIWidget>("GoodMyIconWgt");
        backBtn.onClick = OnBackBtnOnClick;
        ////查找三个英雄头像sp
        //for (int g = 0; g < myHeroIconss.Length;g++ )
        //{
        //    myHeroIconss[g] = transform.Find("GoodMyIconWgt/Icon" + (g + 1)).GetComponent<UISprite>();
        //    lvLabss[g] = transform.Find("GoodMyIconWgt/Icon" + (g + 1) + "/LevelLab").GetComponent<UILabel>();
        //    iconframe[g] = transform.Find("GoodMyIconWgt/Icon" + (g + 1) + "/IconFrame").GetComponent<UISprite>();
        //}
        /////查找三个英雄的星星
        //for (int i = 0; i < stars1.Length; i++)
        //{
        //    stars1[i] = transform.Find("GoodMyIconWgt/Icon1/Stars/Star" + (i + 1)).GetComponent<UISprite>();
        //    stars2[i] = transform.Find("GoodMyIconWgt/Icon2/Stars/Star" + (i + 1)).GetComponent<UISprite>();
        //    stars3[i] = transform.Find("GoodMyIconWgt/Icon3/Stars/Star" + (i + 1)).GetComponent<UISprite>();

        //}

        checkBoxs.onClick = OnCheckBoxClick;
        lastBtn.onClick   = OnLastClick;
        nextBtn.onClick   = OnNextClick;
        // checkBoxs.DefauleIndex = isRankss;
    }
    protected override void Init()
    {
        memberScrollView = transform.Find("MemberScrollView");
        memberMultList   = transform.Find("MemberScrollView/MemberMultList").GetComponent <GUISingleMultList>();

        societyLogScrollView = transform.Find("SocietyLogScrollView");
        societyLogMultList   = transform.Find("SocietyLogScrollView/SocietyLogMultList").GetComponent <GUISingleMultList>();

        applyforScrollView   = transform.Find("ApplyforScrollView");
        applyforMultList     = transform.Find("ApplyforScrollView/ApplyforMultList").GetComponent <GUISingleMultList>();
        titleTransfrom       = transform.Find("Title");
        sendSocietyMailPanel = transform.Find("UISendSocietyMailPanel");
        editSocietyInfoPanel = transform.Find("EditSocietyInfoPanel");
        notApplyfor          = transform.Find("NotApplyfor");

        societyInfoTrans           = transform.Find("SocietyInfo");
        societyIcon                = transform.Find("SocietyInfo/SocietyIcon").GetComponent <UISprite>();
        societyName                = transform.Find("SocietyInfo/SocietyName").GetComponent <UILabel>();
        societyID                  = transform.Find("SocietyInfo/SocietyID").GetComponent <UILabel>();
        presidentName              = transform.Find("SocietyInfo/PresidentName").GetComponent <UILabel>();
        societyLevel               = transform.Find("SocietyInfo/SocietyLevel").GetComponent <UILabel>();
        allContributionValue       = transform.Find("SocietyInfo/AllContributionValue").GetComponent <UILabel>();
        societyManifesto           = transform.Find("SocietyInfo/SocietyManifesto").GetComponent <UILabel>();
        editManifestoBtn           = transform.Find("SocietyInfo/EditManifestoBtn").GetComponent <GUISingleButton>();
        recruitBtn                 = transform.Find("SocietyInfo/RecruitBtn").GetComponent <GUISingleButton>();
        exitSocietyBtn             = transform.Find("SocietyInfo/ExitSocietyBtn").GetComponent <GUISingleButton>();
        dissolveSocietyBtn         = transform.Find("SocietyInfo/DissolveSocietyBtn").GetComponent <GUISingleButton>();
        checkBoxs.onClick          = OnCheckClick;
        backBtn.onClick            = OnBackClick;
        chatBtn.onClick            = OnChatClick;
        editManifestoBtn.onClick   = OnEditManifestoClick;
        recruitBtn.onClick         = OnRecruitClick;
        exitSocietyBtn.onClick     = OnExitSocietyClick;
        dissolveSocietyBtn.onClick = OnDissolveSocietyClick;
    }
Beispiel #3
0
    void Awake()
    {
        instance = this;

        mailType           = transform.Find("MailType").GetComponent <UILabel>();
        mailTitle          = transform.Find("MailTitile").GetComponent <UILabel>();
        mailSenderNick     = transform.Find("MailSenderNick").GetComponent <UILabel>();
        mailSendDate       = transform.Find("MailSendDate").GetComponent <UILabel>();
        mailCount          = transform.Find("MailCount").GetComponent <UILabel>();
        deleteMailBtn      = transform.Find("DeleteMailBtn").GetComponent <GUISingleButton>();
        cDeleteMailBtn     = transform.Find("CDeleteMailBtn").GetComponent <GUISingleButton>();
        getMailGoods       = transform.Find("GetMailGoods").GetComponent <GUISingleButton>();
        goodsScrollViewObj = transform.Find("GoodsScrollView").gameObject;
        goodsScrollView    = goodsScrollViewObj.GetComponent <UIScrollView>();
        goodsMultist       = transform.Find("GoodsScrollView/goodsMultList").GetComponent <GUISingleMultList>();

        characterScrollView = transform.Find("CharacterScrollView").GetComponent <UIScrollView>();
        contentLabel        = transform.Find("CharacterScrollView/MailContent").GetComponent <UILabel>();

        deletePromptObj = transform.Find("DeletePrompt").gameObject;
        ensureBtn       = transform.Find("DeletePrompt/EnsureBtn").GetComponent <GUISingleButton>();
        cancelBtm       = transform.Find("DeletePrompt/CancelBtn").GetComponent <GUISingleButton>();
        promptLabel     = transform.Find("DeletePrompt/Label").GetComponent <UILabel>();
        deletePromptObj.SetActive(false);
        deleteMailBtn.onClick  = OnDeleteMailClick;
        cDeleteMailBtn.onClick = OnDeleteMailClick;
        getMailGoods.onClick   = OnGetMailGoodsClick;
        ensureBtn.onClick      = OnEnSureDeleteMailClick;
        cancelBtm.onClick      = OnCancelDeleteMailClick;
    }
Beispiel #4
0
 protected override void Init()
 {
     base.Init();
     multList               = transform.Find("MultList").GetComponent <GUISingleMultList>();
     checkBoxs.onClick      = OnCheckClick;
     checkBoxs.DefauleIndex = 0;
 }
Beispiel #5
0
 protected override void Init()
 {
     base.Init();
     resultShowObj   = transform.Find("ResultShow").gameObject;
     multList        = transform.Find("ResultShow/ScrollView/MultList").GetComponent <GUISingleMultList>();
     view            = transform.Find("ResultShow/ScrollView");
     scrollBar       = transform.Find("ResultShow/ScrollBar").GetComponent <UIScrollBar>();
     useEffect       = transform.Find("EffectPanel/UI_DianJinShou_01");
     towBaojiEffect  = transform.Find("EffectPanel/UI_DianJinShou_BJx2");
     fiveBaojiEffect = transform.Find("EffectPanel/UI_DianJinShou_BJx5");
     tenBaojiEffect  = transform.Find("EffectPanel/UI_DianJinShou_BJx10");
     useEffect.gameObject.SetActive(false);
     towBaojiEffect.gameObject.SetActive(false);
     fiveBaojiEffect.gameObject.SetActive(false);
     tenBaojiEffect.gameObject.SetActive(false);
     maskObj            = transform.Find("Mask").gameObject;
     backBtn            = transform.Find("BackBtn").GetComponent <GUISingleButton>();
     oneUseBtn          = transform.Find("OneUseBtn").GetComponent <GUISingleButton>();
     moreUseBtn         = transform.Find("MoreUseBtn").GetComponent <GUISingleButton>();
     des                = transform.Find("Des").GetComponent <GUISingleLabel>();
     useCount           = transform.Find("UseCount").GetComponent <GUISingleLabel>();
     jewelCountTxt      = transform.Find("JewelCountTxt").GetComponent <GUISingleLabel>();
     goldCountTxt       = transform.Find("GoldCountTxt").GetComponent <GUISingleLabel>();
     backBtn.onClick    = OnCancleClick;
     oneUseBtn.onClick  = OnOneUseBtnClick;
     moreUseBtn.onClick = OnMoreUseBtnClick;
     UIEventListener.Get(maskObj).onClick += OnCloseClick;
     //multList.ScrollView = view;
     //goldHandTimes = playerData.GetInstance().goldHand.maxcount - playerData.GetInstance().goldHand.curcount;//连接服务器后 这个需要注销
 }
Beispiel #6
0
    protected override void Init()
    {
        _instance = this;
        base.Init();

        closeBtn.onClick         = OnCloseBtn;
        goodsMultList            = transform.FindComponent <GUISingleMultList>("GoodsMultList");
        view                     = transform.Find("GoodsListScrollView");
        goodsMultList.ScrollView = view;


        //roleIcon.spriteName = UIRoleInfo.Instance.roleIcon.spriteName;
        //roleIconBorder.spriteName = UIRoleInfo.Instance.roleIconBorder.spriteName;
        if (FSDataNodeTable <RoleIconAttrNode> .GetSingleton().DataNodeList.ContainsKey(playerData.GetInstance().iconFrameData.iconFrame_id))
        {
            foreach (int key in FSDataNodeTable <RoleIconAttrNode> .GetSingleton().DataNodeList.Keys)
            {
                if (key > 20000)
                {
                    RoleIconAttrNode a = FSDataNodeTable <RoleIconAttrNode> .GetSingleton().DataNodeList[key];

                    keyList.Add(a);
                }
            }
        }
    }
Beispiel #7
0
    protected override void Init()
    {
        base.Init();

        instance = this;

        allofMultList        = transform.Find("HeroListScrollView/AllofMultList").GetComponent <GUISingleMultList>();
        powerMultList        = transform.Find("HeroListScrollView/PowerMultList").GetComponent <GUISingleMultList>();
        agileMultList        = transform.Find("HeroListScrollView/AgileMultList").GetComponent <GUISingleMultList>();
        intelligenceMultList = transform.Find("HeroListScrollView/IntelligenceMultList").GetComponent <GUISingleMultList>();
        tabList.Add(allofMultList.gameObject);
        tabList.Add(powerMultList.gameObject);
        tabList.Add(agileMultList.gameObject);
        tabList.Add(intelligenceMultList.gameObject);
        heroListSV          = transform.Find("HeroListScrollView").transform;
        scrollView          = heroListSV.GetComponent <UIScrollView>();
        scrollBar           = transform.Find("ScrollBar").GetComponent <UIScrollBar>();
        backBtn.onClick     = OnBackBtnClick;
        upPageBtn.onClick   = OnUpPageClick;
        nextPageBtn.onClick = OnNextPageClick;

        typeHeroTab.onClick = OnTypeHeroTabClick;

        scrollViewPos = scrollView.transform.localPosition;
        multListPos   = allofMultList.transform.localPosition;
        //Globe.playHeroList[0] = Globe.mainVO;
    }
Beispiel #8
0
 protected override void Init()
 {
     backObj    = transform.Find("Back").gameObject;
     scrollView = transform.Find("ScrollView").GetComponent <UIScrollView>();
     multList   = transform.Find("ScrollView/MultList").GetComponent <GUISingleMultList>();
     UIEventListener.Get(backObj).onClick += OnCloseClick;
     closeBtn.onClick = OnBackClick;
 }
Beispiel #9
0
 private List <ItemData> dtList   = new List <ItemData>();//剔除金币和钻石
 protected override void InitItem()
 {
     canGetBtn         = transform.Find("CanGetBtn").GetComponent <GUISingleButton>();
     getCondition      = transform.Find("GetCondition").GetComponent <UILabel>();
     multList          = transform.Find("MultList").GetComponent <GUISingleMultList>();
     alreadyGet        = transform.Find("AlreadyGet");
     dontGet           = transform.Find("DontGet");
     canGetBtn.onClick = OnGetLevelGiftBagClick;
 }
Beispiel #10
0
 protected override void Init()
 {
     HeroPosEmb      = GameObject.Find("HeroPosEmbattle");
     backObj         = transform.Find("Mask").gameObject;
     goodsScrollView = transform.Find("GoodsListScrollView").GetComponent <UIScrollView>();
     goodsMultList   = transform.Find("GoodsListScrollView/GoodsMultList").GetComponent <GUISingleMultList>();
     UIEventListener.Get(backObj).onClick += BtnOnClick;
     nextSprite = transform.Find("NextSprite").GetComponent <UISprite>();
 }
Beispiel #11
0
 protected override void Init()
 {
     multList = transform.Find("GiftbagScrollView/MultList").GetComponent <GUISingleMultList>();
     if (FSDataNodeTable <OnlineRewardNode> .GetSingleton().DataNodeList.Count > 0)
     {
         foreach (OnlineRewardNode node in FSDataNodeTable <OnlineRewardNode> .GetSingleton().DataNodeList.Values)
         {
             onlineRewardList.Add(node);
         }
     }
 }
Beispiel #12
0
 protected override void Init()
 {
     base.Init();
     instance        = this;
     mailMultList    = transform.Find("MailScrollView/MailMultList").GetComponent <GUISingleMultList>();
     mailDetailObj   = transform.Find("MailDetail").gameObject;
     promptLabel     = transform.Find("PromptLabel").GetComponent <UILabel>();
     notMail         = transform.Find("NotMail").GetComponent <UILabel>();
     tweenA          = promptLabel.transform.GetComponent <TweenAlpha>();
     tweenP          = promptLabel.transform.GetComponent <TweenPosition>();
     backBtn.onClick = OnBackBtnClick;
 }
Beispiel #13
0
    }                                                //召唤英雄ID

    #endregion
    protected override void Init()
    {
        base.Init();

        instance = this;

        getHeroPanel = transform.Find("GetHeroPanel").GetComponent <GetHeroPanel>();

        allofMultList        = transform.Find("HeroListScrollView/AllofMultList").GetComponent <GUISingleMultList>();
        powerMultList        = transform.Find("HeroListScrollView/PowerMultList").GetComponent <GUISingleMultList>();
        agileMultList        = transform.Find("HeroListScrollView/AgileMultList").GetComponent <GUISingleMultList>();
        intelligenceMultList = transform.Find("HeroListScrollView/IntelligenceMultList").GetComponent <GUISingleMultList>();
        tabList = transform.Find("HeroListScrollView").GetComponentsInChildren <GUISingleMultList>();
        //foreach (Transform item in transform.Find("HeroListScrollView"))
        //{
        //    tabList.Add(item.gameObject);
        //}

        backBtn.onClick     = OnBackBtnClick;
        typeHeroTab.onClick = OnTypeHeroTabClick;

        //获取全部英雄
        objDic = FSDataNodeTable <HeroNode> .GetSingleton().DataNodeList;

        int heroCount = 0;

        foreach (object hn in objDic.Values)
        {
            if (((HeroNode)hn).released == 1)
            {
                heroCount++;
            }
        }

        obj = new object[heroCount];

        int index = 0;

        foreach (object hn in objDic.Values)
        {
            if (((HeroNode)hn).released == 1)
            {
                if (index < obj.Length)
                {
                    obj[index] = hn;
                    index++;
                }
            }
        }
    }
Beispiel #14
0
 protected override void Init()
 {
     backObj    = transform.Find("Back").gameObject;
     goods      = transform.Find("Goods").GetComponent <UISprite>();
     iconS      = transform.Find("Icon").GetComponent <UISprite>();
     icon       = transform.Find("Icon").GetComponent <GUISingleSprite>();
     count      = transform.Find("Count").GetComponent <UILabel>();
     goodsName  = transform.Find("GoodsName").GetComponent <UILabel>();
     des        = transform.Find("Des").GetComponent <UILabel>();
     debris     = transform.Find("Debris");
     scrollView = transform.Find("ScrollView").GetComponent <UIScrollView>();
     multList   = transform.Find("ScrollView/MultList").GetComponent <GUISingleMultList>();
     UIEventListener.Get(backObj).onClick += OnCloseClick;
     closeBtn.onClick = OnBackClick;
 }
Beispiel #15
0
    /// <summary>
    /// 初始化
    /// </summary>
    protected override void Init()
    {
        foreach (var item in FSDataNodeTable <UISign_inNode> .GetSingleton().DataNodeList.Values)
        {
            if (item.day == 40)
            {
                accumulateSign_ThreeDay.spriteName = GameLibrary.Instance().ItemStateList[item.reward_prop[0]].icon_name.ToString();
                Sprite.spriteName = GetspriteName(GameLibrary.Instance().ItemStateList[item.reward_prop[0]].grade);
                num[0].text       = item.reward_prop[1].ToString();
            }
            else if (item.day == 41)
            {
                accumulateSign_SevenDay.spriteName = GameLibrary.Instance().ItemStateList[item.reward_prop[0]].icon_name.ToString();
                Sprite1.spriteName = GetspriteName(GameLibrary.Instance().ItemStateList[item.reward_prop[0]].grade);
                num[1].text        = item.reward_prop[1].ToString();
            }
            else if (item.day == 42)
            {
                if (item.reward_prop != null && item.reward_prop[0] != 0 && GameLibrary.Instance().ItemStateList.ContainsKey(item.reward_prop[0]))
                {
                    accumulateSign_FifteenDay.spriteName = GameLibrary.Instance().ItemStateList[item.reward_prop[0]].icon_name.ToString();
                    Sprite2.spriteName = GetspriteName(GameLibrary.Instance().ItemStateList[item.reward_prop[0]].grade);
                    num[2].text        = item.reward_prop[1].ToString();
                }
                else
                {
                    Debug.Log(item.reward_prop);
                }
            }
            else if (item.day == 43)
            {
                accumulateSign_Twenty_EightDay.spriteName = GameLibrary.Instance().ItemStateList[item.reward_prop[0]].icon_name.ToString();
                Sprite3.spriteName = GetspriteName(GameLibrary.Instance().ItemStateList[item.reward_prop[0]].grade);
                num[3].text        = item.reward_prop[1].ToString();
            }
            itemRankList.Add(item);
        }
        progressbar.pivot                      = UIWidget.Pivot.Left;
        progressbar.width                      = 0;
        goodsMultList                          = transform.FindComponent <GUISingleMultList>("Sign_inScrollView/Sign_inList");
        sign_inReplenishBtn.onClick            = OnSign_inReplenishBtnClick;
        accumulateSign_ThreeDay.onClick        = ThreeDayBtnClick;
        accumulateSign_SevenDay.onClick        = SevenDayBtnClick;
        accumulateSign_FifteenDay.onClick      = FifteenDayBtnClick;
        accumulateSign_Twenty_EightDay.onClick = EightDayBtnClick;

        CcumulateSign_inInit();
    }
Beispiel #16
0
 protected override void Init()
 {
     HeroPosEmb      = GameObject.Find("HeroPosEmbattle");
     mountAndPetList = transform.Find("MountAndPet/MountAndPetList").GetComponent <GUISingleMultList>();
     heroList        = transform.Find("HeroView/HeroList").GetComponent <GUISingleMultList>();
     morPName        = transform.Find("MorPName").GetComponent <UILabel>();
     des             = transform.Find("Des").GetComponent <UILabel>();
     levellimit      = transform.Find("Levellimit").GetComponent <UILabel>();
     canRide         = transform.Find("CanRide").GetComponent <UILabel>();
     getWayLabel     = transform.Find("GetWayLabel").GetComponent <UILabel>();
     //InitData();
     backBtn.onClick   = OnBackBtnClick;
     useBtn.onClick    = OnUseBtnClick;
     buyBtn.onClick    = OnBuyBtnClick;
     checkBoxs.onClick = OnCheckClick;
 }
Beispiel #17
0
    protected override void Init()
    {
        instance        = this;
        HeroPosEmb      = GameObject.Find("HeroPosEmbattle");
        dingweigrid     = transform.Find("DingweiContainer/Grid").GetComponent <UIGrid>();
        tediangrid      = transform.Find("TedianContainer/Grid").GetComponent <UIGrid>();
        login           = VOManager.Instance().GetCSV <LoginCSV>("Login").GetVoList();
        sureBtn.onClick = OnSureBtn;
        //randomBtn.onClick = OnRandomClick;
        pai1              = transform.Find("pai1").GetComponent <UIToggle>();
        pai2              = transform.Find("pai2").GetComponent <UIToggle>();
        pai3              = transform.Find("pai3").GetComponent <UIToggle>();
        skillMultList     = transform.Find("ScrollView/MultList").GetComponent <GUISingleMultList>();
        skillPanel        = transform.Find("SkillDescribePanel");
        heroName          = transform.Find("Name").GetComponent <UILabel>();
        des               = transform.Find("ScrollViewLabel/Des").GetComponent <UILabel>();
        checkBoxs.onClick = OnCreateRoleClick;
        boxs              = checkBoxs.GetBoxList();
        //for (int i = 0; i < boxs.Length; i++)
        //{
        //    boxs[i].GetComponent<UISprite>().spriteName = ((LoginVO)login[i + 1]).card_name.Trim();
        //}
        //checkBoxs.onHover = OnCreateRoleHover;
        //selectRoleSceneObj = GameObject.Find("Xuanren").transform;
        EventDelegate ed2 = new EventDelegate(this, "OnSelectCard");

        pai1.onChange.Add(ed2);
        pai2.onChange.Add(ed2);
        pai3.onChange.Add(ed2);
        backBtn.onClick = OnBackClick;
        //if (FSDataNodeTable<PlayerNameNode>.GetSingleton().DataNodeList.Count > 0)
        //{
        //    nodeDic = FSDataNodeTable<PlayerNameNode>.GetSingleton().DataNodeList;
        //    foreach (var nameLists in nodeDic)
        //    {

        //        playerData.GetInstance().selfData.nameList.Add(nameLists.Value);
        //    }

        //}
        InitNameList();
        //EventDelegate.Add(nicknameInput.GetComponent<UIInput>().onChange, OnChange);
        spinWithMouse = transform.Find("HeroTexture").GetComponent <SpinWithMouse>();
        collder       = transform.transform.Find("HeroTexture").GetComponent <BoxCollider>();
    }
Beispiel #18
0
    protected override void Init()
    {
        Instance      = this;
        backBtn       = transform.FindComponent <GUISingleButton>("BackBtn");
        view          = transform.Find("GoodsListScrollView");
        scrollBar     = transform.Find("ScrollBar").GetComponent <UIScrollBar>();
        goodsDetials  = transform.Find("GoodsDetials").gameObject;
        goodsMultList = transform.FindComponent <GUISingleMultList>("GoodsMultList");

        backBtn.onClick   = OnBackBtnClick;
        checkBoxs.onClick = OnGoodTypeTabClick;
        InitDate();
        goodsMultList.ScrollView = view;
        c = new Color(172 / 255f, 213 / 255f, 255 / 255f);
        checkBoxs.DefauleIndex = 0;
        OnGoodTypeTabClick(0, true);
        Globe.isRefresh = true;
    }
Beispiel #19
0
    protected override void Init()
    {
        _instance = this;
        base.Init();
        closeBtn.onClick         = OnCloseBtn;
        goodsMultList            = transform.FindComponent <GUISingleMultList>("GoodsMultList");
        view                     = transform.Find("GoodsListScrollView");
        goodsMultList.ScrollView = view;

        foreach (int key in FSDataNodeTable <RoleIconAttrNode> .GetSingleton().DataNodeList.Keys)
        {
            if (key < 10014 || key == 10030)
            {
                RoleIconAttrNode a = FSDataNodeTable <RoleIconAttrNode> .GetSingleton().DataNodeList[key];

                keyList.Add(a);
            }
        }
    }
Beispiel #20
0
    protected override void Init()
    {
        societyScrollview = transform.Find("SocietyScrollView");
        societyMultList   = transform.Find("SocietyScrollView/SocietyMultList").GetComponent <GUISingleMultList>();

        searchSociettScrollView = transform.Find("SearchSocietyScrollView");
        searchSocietyMultList   = transform.Find("SearchSocietyScrollView/SearchSocietyMultList").GetComponent <GUISingleMultList>();

        otherSocietyInviteScrollView = transform.Find("OtherSocietyInviteScrollView");
        otherSocietyInviteMultList   = transform.Find("OtherSocietyInviteScrollView/OtherSocietyInviteMultList").GetComponent <GUISingleMultList>();
        titleTransfrom     = transform.Find("Title");
        searchSocietyPanel = transform.Find("SearchSocietyPanel");
        searchBtn          = transform.Find("SearchSocietyPanel/SearchBtn").GetComponent <GUISingleButton>();
        searchInput        = transform.Find("SearchSocietyPanel/SearchInput").GetComponent <GUISingleInput>();
        notSearchSociety   = transform.Find("NotSearchSociety");
        createSocietyPanel = transform.Find("UICreateSocietyPanel");
        checkBoxs.onClick  = OnCheckClick;
        backBtn.onClick    = OnBackClick;
        searchBtn.onClick  = OnSearchClick;
        refreshBtn.onClick = OnRefreshClick;
    }
Beispiel #21
0
    protected override void Init()
    {
        base.Init();
        instance              = this;
        HeroPosEmb            = GameObject.Find("HeroPosEmbattle");
        checkBoxs             = transform.Find("CheckBoxs").GetComponent <GUISingleCheckBoxGroup>();
        titleMultList         = transform.Find("ScrollView/MultList").GetComponent <GUISingleMultList>();
        backBtn               = transform.Find("BackBtn").GetComponent <GUISingleButton>();
        titleScrollView       = transform.Find("ScrollView").GetComponent <UIScrollView>();
        promptLabel           = transform.Find("PromptLabel").GetComponent <UILabel>();
        playerTitleName       = transform.Find("PlayerTitleName").GetComponent <UILabel>();
        tweenA                = promptLabel.transform.GetComponent <TweenAlpha>();
        tweenP                = promptLabel.transform.GetComponent <TweenPosition>();
        titleAttributeT       = transform.Find("TitileAttribute");
        grid                  = transform.Find("TitileAttribute/Grid").GetComponent <UIGrid>();
        powerLabel            = transform.Find("TitileAttribute/Grid/powerLabel").GetComponent <UILabel>();
        intelligenceLabel     = transform.Find("TitileAttribute/Grid/intelligenceLabel").GetComponent <UILabel>();
        agilityLabel          = transform.Find("TitileAttribute/Grid/agilityLabel").GetComponent <UILabel>();
        hpLabel               = transform.Find("TitileAttribute/Grid/hpLabel").GetComponent <UILabel>();
        attackLabel           = transform.Find("TitileAttribute/Grid/attackLabel").GetComponent <UILabel>();
        armorLabel            = transform.Find("TitileAttribute/Grid/armorLabel").GetComponent <UILabel>();
        magic_resistLabel     = transform.Find("TitileAttribute/Grid/magic_resistLabel").GetComponent <UILabel>();
        criticalLabel         = transform.Find("TitileAttribute/Grid/criticalLabel").GetComponent <UILabel>();
        dodgeLabel            = transform.Find("TitileAttribute/Grid/dodgeLabel").GetComponent <UILabel>();
        hitratioLabel         = transform.Find("TitileAttribute/Grid/hitratioLabel").GetComponent <UILabel>();
        armorpenetrationLabel = transform.Find("TitileAttribute/Grid/armorpenetrationLabel").GetComponent <UILabel>();
        magicpenetrationLabel = transform.Find("TitileAttribute/Grid/magicpenetrationLabel").GetComponent <UILabel>();
        suckbloodLabel        = transform.Find("TitileAttribute/Grid/suckbloodLabel").GetComponent <UILabel>();
        tenacityLabel         = transform.Find("TitileAttribute/Grid/tenacityLabel").GetComponent <UILabel>();
        mspeed                = transform.Find("TitileAttribute/Grid/mspeed").GetComponent <UILabel>();
        aspeed                = transform.Find("TitileAttribute/Grid/aspeed").GetComponent <UILabel>();
        fanwei                = transform.Find("TitileAttribute/Grid/fanwei").GetComponent <UILabel>();
        nottitleDes           = transform.Find("NotTitleDes");
        backBtn.onClick       = OnBackClick;
        checkBoxs.onClick     = OnTitleClick;

        //InitTitleData();
        //checkBoxs.DefauleIndex = 0;
        //OnTitleClick(0, true);
    }
Beispiel #22
0
    protected override void Init()
    {
        base.Init();

        instance = this;

        eMatMultList.gameObject.SetActive(false);

        upgradeObj   = transform.Find("Upgrade").gameObject;
        evolutionObj = transform.Find("Evolution").gameObject;

        allUpgradeL   = UnityUtil.FindCtrl <UILabel>(upgradeObj, "AllUpgradeL");
        allUpGoldL    = UnityUtil.FindCtrl <UILabel>(upgradeObj, "AllUpGoldL");
        UpgradeL      = UnityUtil.FindCtrl <UILabel>(upgradeObj, "UpgradeL");
        UpGoldL       = UnityUtil.FindCtrl <UILabel>(upgradeObj, "UpGoldL");
        allUpgradeBtn = UnityUtil.FindCtrl <GUISingleButton>(upgradeObj, "AllUpgradeBtn");
        upgradeBtn    = UnityUtil.FindCtrl <GUISingleButton>(upgradeObj, "UpgradeBtn");

        go           = evolutionObj.transform.Find("GameObject").gameObject;
        matMultList  = evolutionObj.transform.Find("GameObject/MatMultList").GetComponent <GUISingleMultList>();
        evolutionBtn = evolutionObj.transform.Find("GameObject/EvolutionBtn").GetComponent <GUISingleButton>();
        maxLabel     = evolutionObj.transform.Find("Label").GetComponent <UILabel>();

        for (int i = 1; i < 6; i++)
        {
            starList.Add(UnityUtil.FindCtrl <UISprite>(icon.gameObject, "Star" + i));
        }

        allUpgradeBtn.onClick = OnAllUpgradeBtnClick;
        upgradeBtn.onClick    = OnUpgradeBtnClick;
        maskBtn.onClick       = OnMaskBtnClick;

        evolutionBtn.onClick = OnEvolutionBtnClick;

        //detailsTab.onClick = OnDetailsTabClick;

        UIEventListener.Get(icon.gameObject).onClick = OnIconClick;
    }
Beispiel #23
0
    protected override void Init()
    {
        base.Init();
        backBtn           = transform.Find("BackBtn").GetComponent <GUISingleButton>();
        sendBtn           = transform.Find("Button").GetComponent <GUISingleButton>();
        checkBoxs         = transform.Find("CheckBoxs").GetComponent <GUISingleCheckBoxGroup>();
        chatMultList      = transform.Find("ChatScrollView/ChatMultList").GetComponent <GUISingleMultList>();
        chatScrollView    = transform.Find("ChatScrollView").GetComponent <UIScrollView>();
        scrollBar         = transform.Find("ScrollBar").GetComponent <UIScrollBar>();
        inputContent      = transform.Find("Input").GetComponent <UIInput>();
        cannotSpeakObj    = transform.Find("CannotSpeakPrompt").gameObject;
        cannotSpeakLabel  = transform.Find("CannotSpeakPrompt/Label").GetComponent <UILabel>();
        worldHitObj       = transform.Find("Hit/worldHit").gameObject;
        societyHitObj     = transform.Find("Hit/societyHit").gameObject;
        privateHitObj     = transform.Find("Hit/privateHit").gameObject;
        nearbyHitObj      = transform.Find("Hit/nearbyHit").gameObject;
        troopsHitObj      = transform.Find("Hit/troopsHit").gameObject;
        systemHitObj      = transform.Find("Hit/systemHit").gameObject;
        maskObj           = transform.Find("Mask").gameObject;
        horbCoutLabel     = transform.Find("HorbCount").GetComponent <UILabel>();
        horbSprite        = transform.Find("HorbSprite").GetComponent <UISprite>();
        backBtn.onClick   = OnBackBtnClick;
        checkBoxs.onClick = OnChatChannelClick;
        sendBtn.onClick   = OnSendChatClick;
        UIEventListener.Get(maskObj).onClick += OnCloseClick;
        InitChatInfoList();
        JudgePlayerIsCanSpeak();
        //checkBoxs.DefauleIndex = 0;
        //OnChatChannelClick(0, true);
        UIEventListener.Get(inputContent.gameObject).onClick = OnInputClick;
#if UNITY_EDITOR
#elif UNITY_ANDROID
        EventDelegate.Add(inputContent.onSubmit, OnSunmit);
#endif
        //EventDelegate.Add(inputContent.onChange, OnChange);
    }
Beispiel #24
0
    protected override void Init()
    {
        base.Init();

        instance = this;

        allofMultList        = transform.Find("HeroListScrollView/AllofMultList").GetComponent <GUISingleMultList>();
        powerMultList        = transform.Find("HeroListScrollView/PowerMultList").GetComponent <GUISingleMultList>();
        agileMultList        = transform.Find("HeroListScrollView/AgileMultList").GetComponent <GUISingleMultList>();
        intelligenceMultList = transform.Find("HeroListScrollView/IntelligenceMultList").GetComponent <GUISingleMultList>();

        mainMask    = mainHero.transform.Find("mark").GetComponent <UISprite>();
        fuHero1Mask = fuHero1.transform.Find("mark").GetComponent <UISprite>();
        fuHero2Mask = fuHero2.transform.Find("mark").GetComponent <UISprite>();
        fuHero3Mask = fuHero3.transform.Find("mark").GetComponent <UISprite>();
        prompt      = transform.Find("PromptLabel").GetComponent <UILabel>();

        mainMask.enabled    = false;
        fuHero1Mask.enabled = false;
        fuHero2Mask.enabled = false;
        fuHero3Mask.enabled = false;

        backBtn.onClick     = OnBackBtnClick;
        typeHeroTab.onClick = OnTypeHeroTabClick;
        mainHero.onClick    = OnMainHero;
        fuHero1.onClick     = OnFuHero1Click;
        fuHero2.onClick     = OnFuHero2Click;
        fuHero3.onClick     = OnFuHero3Click;
        fightingBtn.onClick = OnFightingBtnClick;

        //全部英雄
        objAll = VOManager.Instance().GetCSV <HeroTableCSV>("HeroTable").GetVoList();

        //if (Globe.heroPlay.Count == 1)
        //{
        //    mainMask.enabled = true;
        //    mainMask.spriteName = Globe.mainVO.icon_name;
        //    fuHero1Mask.enabled = false;
        //    fuHero2Mask.enabled = false;
        //    fuHero3Mask.enabled = false;
        //}
        //else if (Globe.heroPlay.Count == 2)
        //{
        //    mainMask.enabled = true;
        //    mainMask.spriteName = Globe.mainVO.icon_name;
        //    fuHero1Mask.enabled = true;
        //    fuHero1Mask.spriteName = Globe.fu1VO.icon_name;
        //    fuHero2Mask.enabled = false;
        //    fuHero3Mask.enabled = false;
        //}
        //else if (Globe.heroPlay.Count == 3)
        //{
        //    mainMask.enabled = true;
        //    mainMask.spriteName = Globe.mainVO.icon_name;
        //    fuHero1Mask.enabled = true;
        //    fuHero1Mask.spriteName = Globe.fu1VO.icon_name;
        //    fuHero2Mask.enabled = true;
        //    fuHero2Mask.spriteName = Globe.fu2VO.icon_name;
        //    fuHero3Mask.enabled = false;
        //}
        //else if (Globe.heroPlay.Count == 4)
        //{
        //    mainMask.enabled = true;
        //    mainMask.spriteName = Globe.mainVO.icon_name;
        //    fuHero1Mask.enabled = true;
        //    fuHero1Mask.spriteName = Globe.fu1VO.icon_name;
        //    fuHero2Mask.enabled = true;
        //    fuHero2Mask.spriteName = Globe.fu2VO.icon_name;
        //    fuHero3Mask.enabled = true;
        //    fuHero3Mask.spriteName = Globe.fu3VO.icon_name;
        //}
    }
Beispiel #25
0
    protected override void Init()
    {
        base.Init();

        instance = this;

        allofMultList        = transform.Find("HeroListScrollView/AllofMultList").GetComponent <GUISingleMultList>();
        powerMultList        = transform.Find("HeroListScrollView/PowerMultList").GetComponent <GUISingleMultList>();
        agileMultList        = transform.Find("HeroListScrollView/AgileMultList").GetComponent <GUISingleMultList>();
        intelligenceMultList = transform.Find("HeroListScrollView/IntelligenceMultList").GetComponent <GUISingleMultList>();

        foreach (Transform item in transform.Find("HeroListScrollView"))
        {
            tabList.Add(item.gameObject);
        }

        heroListSV = transform.Find("HeroListScrollView").transform;

        label = sureBtn.transform.FindComponent <UILabel>("Label");

        mainSprite = mainHero.GetComponent <UISprite>();
        fuSprite1  = fuHero1.GetComponent <UISprite>();
        fuSprite2  = fuHero2.GetComponent <UISprite>();
        fuSprite3  = fuHero3.GetComponent <UISprite>();

        mainSprite.enabled = false;
        fuSprite1.enabled  = false;
        fuSprite2.enabled  = false;
        fuSprite3.enabled  = false;

        mainHero.onClick = OnMainHeroClick;
        fuHero1.onClick  = OnFuHero1Click;
        fuHero2.onClick  = OnFuHero2Click;
        fuHero3.onClick  = OnFuHero3Click;

        sureBtn.onClick = OnSureBtnClick;
        backBtn.onClick = OnBackBtnClick;

        typeHeroTab.onClick = OnTypeHeroTabClick;

        //获取全部英雄
        objDic = FSDataNodeTable <HeroNode> .GetSingleton().DataNodeList;

        //获取全部英雄
        int index = 0;

        foreach (object hn in objDic.Values)
        {
            if (index < obj.Length)
            {
                obj[index] = hn;
                index++;
            }
        }

        //Globe.mainVO = FSDataNodeTable<HeroNode>.GetSingleton().DataNodeList[201000200];//Manager.Instance().GetCSV<HeroCSV>("Hero").GetVO(201000200);
        //Globe.gMainNode = FSDataNodeTable<HeroNode>.GetSingleton().FindDataByType(FightTouch.GetHeroById(GameLibrary.player));

        //Globe.playHeroList[0] = Globe.mainVO;
        //mainSprite.spriteName = Globe.mainVO.icon_name;

        //BtnIsClick(false);

        GetSaveHeroList();
    }
Beispiel #26
0
 protected override void Init()
 {
     backObj             = transform.Find("Mask").gameObject;
     societyIconMultList = transform.Find("SocietyIconScrollView/SocietyIconMultList").GetComponent <GUISingleMultList>();
     UIEventListener.Get(backObj).onClick += OnCloseClick;
 }
Beispiel #27
0
    protected override void Init()
    {
        if (FSDataNodeTable <ResetLaterNode> .GetSingleton().DataNodeList.Count > 0)
        {
            for (int i = 0; i < FSDataNodeTable <ResetLaterNode> .GetSingleton().DataNodeList[1].generalShop.Length; i++)
            {
                int ct = FSDataNodeTable <ResetLaterNode> .GetSingleton().DataNodeList[1].generalShop[i];

                playerData.GetInstance().lotteryInfo.refreshCost.Add(ct);
            }

            for (int j = 0; j < FSDataNodeTable <ResetLaterNode> .GetSingleton().DataNodeList[1].generalJdc.Length; j++)
            {
                int jdc = FSDataNodeTable <ResetLaterNode> .GetSingleton().DataNodeList[1].generalJdc[j];

                jdcRefreshCostList.Add(jdc);
            }
            for (int k = 0; k < FSDataNodeTable <ResetLaterNode> .GetSingleton().DataNodeList[1].generalJjc.Length; k++)
            {
                int jjc = FSDataNodeTable <ResetLaterNode> .GetSingleton().DataNodeList[1].generalJjc[k];

                jjcRefreshCostList.Add(jjc);
            }
            for (int l = 0; l < FSDataNodeTable <ResetLaterNode> .GetSingleton().DataNodeList[1].generalXs.Length; l++)
            {
                int xs = FSDataNodeTable <ResetLaterNode> .GetSingleton().DataNodeList[1].generalXs[l];

                xsRefreshCostList.Add(xs);
            }
        }
        multList           = transform.FindComponent <GUISingleMultList>("Scroll View/MultList");
        npcTips            = transform.Find("NpcTips").GetComponent <UIPanel>();
        UserDiamondSp      = transform.Find("UserDiamondSp").GetComponent <UISprite>();
        npcBtn             = transform.Find("NpcBtn").GetComponent <UIButton>();
        npcBtn_2           = transform.Find("NpcBtn2").GetComponent <UIButton>();
        npcBtn_3           = transform.Find("NpcBtn3").GetComponent <UIButton>();
        npcBtn_4           = transform.Find("NpcBtn4").GetComponent <UIButton>();
        checkBoxs.onClick  = OnCheckClick;
        refreshBtn.onClick = OnRefreshClick;
        arrowRight.onClick = OnArrowRTClick;
        arrowLeft.onClick  = OnArrowLTClick;
        playerData.GetInstance().ChangeMoneyEvent += UpdataMonery;
        // backBtn.onClick = OnBackClick;
        EventDelegate ed = new EventDelegate(this, "OnNPCClick");

        npcBtn.onClick.Add(ed);
        EventDelegate ed2 = new EventDelegate(this, "OnNPC_2Click");

        npcBtn_2.onClick.Add(ed2);
        EventDelegate ed3 = new EventDelegate(this, "OnNPC_3Click");

        npcBtn_3.onClick.Add(ed3);
        EventDelegate ed4 = new EventDelegate(this, "OnNPC_4Click");

        npcBtn_4.onClick.Add(ed4);
        _view = transform.Find("Scroll View").GetComponentInChildren <UIScrollView>();//transform.Find("Scroll View");

        _view.GetComponent <UIScrollView>().onDragStarted  += StartDrag;
        _view.GetComponent <UIScrollView>().onDragFinished += EndDrag;
        //  lostTime = maxTimer;
        // checkBoxs.DefauleIndex = isShopss;
    }
Beispiel #28
0
    /// <summary>
    /// 初始化
    /// </summary>
    protected override void Init()
    {
        mSingleton = this;
        //MI = new MaterialItsm[6];
        //GBItem = new GUISingleButton[6];
        //MI2 = new MaterialItsm[10];
        //GBItem2 = new GUISingleButton[10];
        if (IntensifyBtn == null)
        {
            IntensifyBtn = transform.Find("IntensifyBtn").GetComponent <GUISingleButton>();
            IntensifyImg = transform.Find("IntensifyBtn/IntensifyImg").GetComponent <UISprite>();
            EvolveBtn    = transform.Find("EvolveBtn").GetComponent <GUISingleButton>();
            EvolveImg    = transform.Find("EvolveBtn/EvolveImg").GetComponent <UISprite>();

            EquipEvolveBtn = transform.Find("EquipEvolve/EquipEvolves/EvolveBtn").GetComponent <GUISingleButton>();
            OneEvolvesBtn  = transform.Find("EquipEvolve/EquipEvolves/OneEvolvesBtn").GetComponent <GUISingleButton>();

            CompoundBtn = transform.Find("EquipEvolve/MaterialCompound/CompoundBtn").GetComponent <GUISingleButton>();
            CancelBtn   = transform.Find("EquipEvolve/MaterialCompound/CancelBtn").GetComponent <GUISingleButton>();

            //强化属性
            IntensifyLV       = transform.Find("EquipIntensify/IntensifyLV").GetComponent <UILabel>();
            EquipIntensifyImg = transform.Find("EquipIntensify/EquipIntensifyImg").GetComponent <UISprite>();
            Intensifyicon     = transform.Find("EquipIntensify/Intensifyicon").GetComponent <UISprite>();
            IntensifyName     = transform.Find("EquipIntensify/IntensifyName").GetComponent <UILabel>();
            lvFront           = transform.Find("EquipIntensify/lvFront").GetComponent <UILabel>();
            LvQueen           = transform.Find("EquipIntensify/LvQueen").GetComponent <UILabel>();
            ONE             = transform.Find("EquipIntensify/ONE/Label").GetComponent <UILabel>();
            TEN             = transform.Find("EquipIntensify/TEN/Label").GetComponent <UILabel>();
            ALLIntensify    = transform.Find("EquipIntensify/ALLIntensify").GetComponent <GUISingleButton>();
            OneBtnIntensify = transform.Find("EquipIntensify/OneBtnIntensify").GetComponent <GUISingleButton>();
            equlistMultList = transform.Find("EquipIntensify/EquipIntensifys/EquipIntensifyList").GetComponent <GUISingleMultList>();
            //进化属性
            EquipEvolveMultList = transform.Find("EquipEvolve/EquipEvolveView/EquipEvolveMultList").GetComponent <GUISingleMultList>();
            EquipFrontImg       = transform.Find("EquipEvolve/EquipFrontImg").GetComponent <UISprite>();
            EquipFrontIcon      = transform.Find("EquipEvolve/EquipFrontIcon").GetComponent <UISprite>();
            EquipFrontName      = transform.Find("EquipEvolve/EquipFrontName").GetComponent <UILabel>();

            EquipQueenImg  = transform.Find("EquipEvolve/EquipQueenImg").GetComponent <UISprite>();
            EquipQueenIcon = transform.Find("EquipEvolve/EquipQueenIcon").GetComponent <UISprite>();
            EquipQueenName = transform.Find("EquipEvolve/EquipQueenName").GetComponent <UILabel>();

            Evolve0 = transform.Find("EquipEvolve/EquipEvolves/Evolve0").GetComponent <UISprite>();
            Evolve1 = transform.Find("EquipEvolve/EquipEvolves/Evolve1").GetComponent <UISprite>();
            Evolve2 = transform.Find("EquipEvolve/EquipEvolves/Evolve2").GetComponent <UISprite>();

            material0 = transform.Find("EquipEvolve/MaterialCompound/material0").GetComponent <UISprite>();
            material1 = transform.Find("EquipEvolve/MaterialCompound/material1").GetComponent <UISprite>();
            material2 = transform.Find("EquipEvolve/MaterialCompound/material2").GetComponent <UISprite>();
            material3 = transform.Find("EquipEvolve/MaterialCompound/material3").GetComponent <UISprite>();

            CompoundBox  = transform.Find("EquipEvolve/MaterialCompound/Compound").GetComponent <GUISingleButton>();
            CompoundName = transform.Find("EquipEvolve/MaterialCompound/Compound/CompoundName").GetComponent <UISprite>();
            CompoundIcon = transform.Find("EquipEvolve/MaterialCompound/CompoundIcon").GetComponent <UISprite>();

            EquipEvolves      = transform.Find("EquipEvolve/EquipEvolves").GetComponent <UISprite>();
            MaterialCompounds = transform.Find("EquipEvolve/MaterialCompound").GetComponent <UISprite>();

            EquipEvolve    = transform.Find("EquipEvolve").GetComponent <UISprite>();
            EquipIntensify = transform.Find("EquipIntensify").GetComponent <UISprite>();

            //材料ITem属性
            for (int i = 0; i < MI.Length; i++)
            {
                if (i == 0)
                {
                    MI[i] = transform.Find("EquipEvolve/EquipEvolves/Evolve" + 0 + "/Material").GetComponent <MaterialItsm>();
                }
                else if (i >= 1 && i < 3)
                {
                    MI[i] = transform.Find("EquipEvolve/EquipEvolves/Evolve" + 1 + "/Material").GetComponent <MaterialItsm>();
                }
                else if (i >= 3 && i < 6)
                {
                    MI[i] = transform.Find("EquipEvolve/EquipEvolves/Evolve" + 2 + "/Material").GetComponent <MaterialItsm>();
                }
            }

            //材料按钮动态添加时间
            for (int i = 0; i < GBItem.Length; i++)
            {
                if (i == 0)
                {
                    GBItem[i]       = transform.Find("EquipEvolve/EquipEvolves/Evolve" + 0 + "/Material/MaterialName").GetComponent <GUISingleButton>();
                    GBItem[i].index = i;
                }
                else if (i >= 1 && i < 3)
                {
                    GBItem[i]       = transform.Find("EquipEvolve/EquipEvolves/Evolve" + 1 + "/Material/MaterialName").GetComponent <GUISingleButton>();
                    GBItem[i].index = i;
                }
                else if (i >= 3 && i < 6)
                {
                    GBItem[i]       = transform.Find("EquipEvolve/EquipEvolves/Evolve" + 2 + "/Material/MaterialName").GetComponent <GUISingleButton>();
                    GBItem[i].index = i;
                }
            }
            //合成
            for (int i = 0; i < MI2.Length; i++)
            {
                if (i == 0)
                {
                    MI2[i] = transform.Find("EquipEvolve/MaterialCompound/material" + 0 + "/Material").GetComponent <MaterialItsm>();
                }
                else if (i >= 1 && i < 3)
                {
                    MI2[i] = transform.Find("EquipEvolve/MaterialCompound/material" + 1 + "/Material").GetComponent <MaterialItsm>();
                }
                else if (i >= 3 && i < 6)
                {
                    MI2[i] = transform.Find("EquipEvolve/MaterialCompound/material" + 2 + "/Material").GetComponent <MaterialItsm>();
                }
                else if (i >= 6)
                {
                    MI2[i] = transform.Find("EquipEvolve/MaterialCompound/material" + 3 + "/Material").GetComponent <MaterialItsm>();
                }
            }

            //材料按钮动态添加时间
            for (int i = 0; i < GBItem2.Length; i++)
            {
                if (i == 0)
                {
                    GBItem2[i]       = transform.Find("EquipEvolve/MaterialCompound/material" + 0 + "/Material/MaterialName").GetComponent <GUISingleButton>();
                    GBItem2[i].index = i;
                }
                else if (i >= 1 && i < 3)
                {
                    GBItem2[i]       = transform.Find("EquipEvolve/MaterialCompound/material" + 1 + "/Material/MaterialName").GetComponent <GUISingleButton>();
                    GBItem2[i].index = i;
                }
                else if (i >= 3 && i < 6)
                {
                    GBItem2[i]       = transform.Find("EquipEvolve/MaterialCompound/material" + 2 + "/Material/MaterialName").GetComponent <GUISingleButton>();
                    GBItem2[i].index = i;
                }
                else if (i >= 6)
                {
                    GBItem2[i]       = transform.Find("EquipEvolve/MaterialCompound/material" + 3 + "/Material/MaterialName").GetComponent <GUISingleButton>();
                    GBItem2[i].index = i;
                }
            }
        }
        for (int i = 0; i < GBItem.Length; i++)
        {
            GBItem[i].onItemClick = MIClick;
        }
        for (int i = 0; i < GBItem2.Length; i++)
        {
            GBItem2[i].onItemClick = MI2Click;
        }
        CompoundBtn.onClick = EquipCompoundOnClick;
        CancelBtn.onClick   = OneCancelOnClick;

        EquipEvolveBtn.onClick  = EquipEvolveOnClick;
        OneEvolvesBtn.onClick   = OneEvolvesOnClick;
        CompoundBox.onClick     = Reverse;
        IntensifyBtn.onClick    = IntensifyBtnClick;
        EvolveBtn.onClick       = EvolveBtnClick;
        ALLIntensify.onClick    = ALLIntensifyBtnClick;
        OneBtnIntensify.onClick = OneBtnIntensifyBtnClick;
        IntensifyImg.gameObject.SetActive(true);
        if (EquipPanel.instance != null && EquipPanel.instance.ItemEquiplist[UI_HeroDetail.equipItemState] != null)
        {
            RefreshUI(1, EquipPanel.instance.ItemEquiplist[UI_HeroDetail.equipItemState]);
        }
    }