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 #2
0
    protected override void Init()
    {
        instance = this;

        backObj       = transform.Find("Mask").gameObject;
        goods         = transform.Find("Goods").GetComponent <UISprite>();
        iconS         = transform.Find("Goods/Icon").GetComponent <UISprite>();
        icon          = transform.Find("Goods/Icon").GetComponent <GUISingleSprite>();
        goodsName     = transform.Find("GoodsName").GetComponent <UILabel>();
        goodsCount    = transform.Find("GoodsCount").GetComponent <UILabel>();
        unitExpValue  = transform.Find("UnitExpValue").GetComponent <UILabel>();
        saleCount     = transform.Find("SaleCount").GetComponent <UILabel>();
        totalExpValue = transform.Find("TotalExpValue").GetComponent <UILabel>();
        debris        = transform.Find("Goods/Debris");
        reduceBtn     = transform.Find("ReduceBtn").GetComponent <GUISingleButton>();
        addBtn        = transform.Find("AddBtn").GetComponent <GUISingleButton>();
        maxCountBtn   = transform.Find("MaxCountBtn").GetComponent <GUISingleButton>();
        cancelBtn     = transform.Find("CancelBtn").GetComponent <GUISingleButton>();
        sureBtn       = transform.Find("SureBtn").GetComponent <GUISingleButton>();

        reduceBtn.onClick   = OnReduceBtnClick;
        addBtn.onClick      = OnAddBtnClick;
        maxCountBtn.onClick = OnMaxCountBtnClick;
        cancelBtn.onClick   = OnCancelBtnClick;
        sureBtn.onClick     = OnSureBtnClick;
        UIEventListener.Get(backObj).onClick += OnCloseClick;
    }
Beispiel #3
0
 /// <summary>
 /// item初始化函数
 /// </summary>
 protected override void InitItem()
 {
     //初始化
     icon  = transform.Find("Icon").GetComponent <GUISingleButton>();
     count = transform.Find("Label").GetComponent <UILabel>();
     //icon.onClick = OnBtnClick;
 }
Beispiel #4
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 #5
0
 protected override void Init()
 {
     sendBtn               = transform.Find("SendBtn").GetComponent <GUISingleButton>();
     nameInput             = transform.Find("NameInput").GetComponent <GUISingleInput>();
     societyManifestoInput = transform.Find("SocietyManifestoInput").GetComponent <GUISingleInput>();
     sendBtn.onClick       = OnSendClick;
 }
Beispiel #6
0
 protected override void InitItem()
 {
     serverName        = this.GetComponentInChildren <GUISingleLabel>();
     serverState       = this.GetComponentInChildren <GUISingleSprite>();
     serverBtn         = this.GetComponentInChildren <GUISingleButton>();
     serverBtn.onClick = OnClick;
 }
Beispiel #7
0
    protected override void InitItem()
    {
        base.InitItem();
        iconBorder   = transform.Find("IconBorder").GetComponent <UISprite>();
        iconBtn      = transform.Find("Icon").GetComponent <GUISingleButton>();
        channelLabel = transform.Find("Sprite/ChannelLabel").GetComponent <UILabel>();
        channelObj   = transform.Find("Sprite").gameObject;
        vipObj       = transform.Find("vipbg").gameObject;
        vipLabel     = transform.Find("vipbg/Vip").GetComponent <UILabel>();
        qiPao        = transform.Find("Container/QiPao").GetComponent <UISprite>();
        content      = transform.Find("Container/Label").GetComponent <UILabel>();
        contentObj   = transform.Find("Container").gameObject;
        playerName   = transform.Find("PlayerName").GetComponent <UILabel>();
        sendTime     = transform.Find("SendTime").GetComponent <UILabel>();

        mIconBorder      = transform.Find("MIconBorder").GetComponent <UISprite>();
        mIconBtn         = transform.Find("MIcon").GetComponent <GUISingleButton>();
        mChannelLabel    = transform.Find("MSprite/MChannelLabel").GetComponent <UILabel>();
        mChannelObj      = transform.Find("MSprite").gameObject;
        mVipObj          = transform.Find("Mvipbg").gameObject;
        mVipLabel        = transform.Find("Mvipbg/Vip").GetComponent <UILabel>();
        mQiPao           = transform.Find("MContainer/QiPao").GetComponent <UISprite>();
        mContent         = transform.Find("MContainer/Label").GetComponent <UILabel>();
        mContentObj      = transform.Find("MContainer").gameObject;
        mPlayerName      = transform.Find("MPlayerName").GetComponent <UILabel>();
        mSendTime        = transform.Find("MSendTime").GetComponent <UILabel>();
        iconBtn.onClick  = OnIconClick;
        mIconBtn.onClick = OnIconClick;
    }
Beispiel #8
0
 protected override void InitItem()
 {
     icon            = transform.Find("Icon").GetComponent <GUISingleButton>();
     GameAfficheImg  = transform.Find("GameAfficheImg").GetComponent <UISprite>();
     GameAffichetext = transform.Find("GameAffichetext").GetComponent <UILabel>();
     icon.onClick    = OnIconClick;
 }
Beispiel #9
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 #10
0
    /// <summary>
    /// item初始化函数
    /// </summary>
    protected override void InitItem()
    {
        //初始化
        icon = transform.Find("Icon").GetComponent <GUISingleButton>();

        icon.onClick = OnIconClick;

        border = transform.Find("Border").GetComponent <UISprite>();
        //qualityLabel = transform.Find("QualityLabel").GetComponent<UILabel>();
        levelLabel = transform.Find("LevelLabel").GetComponent <UILabel>();
        nameLabel  = transform.Find("NameLabel").GetComponent <UILabel>();
        mask       = UnityUtil.FindCtrl <UISprite>(gameObject, "Mask");
        typeS      = UnityUtil.FindCtrl <UISprite>(gameObject, "Type");
        suo        = UnityUtil.FindCtrl <UISprite>(gameObject, "Suo");
        souStoneL  = UnityUtil.FindCtrl <UILabel>(gameObject, "SouStoneL");
        summonBtn  = UnityUtil.FindCtrl <UIButton>(gameObject, "SummonBtn");

        for (int i = 1; i <= 5; i++)
        {
            startList.Add(transform.Find("Star" + i).GetComponent <UISprite>());
        }

        //EventDelegate.Set(mask.onClick, this.OnMackBtn);

        GetComponent <BoxCollider>().enabled = false;


        herolist = UIHeroList.instance;

        EventDelegate.Set(summonBtn.onClick, OnSummonBtnClick);
    }
Beispiel #11
0
 /// <summary>
 /// item初始化函数
 /// </summary>
 protected override void InitItem()
 {
     //初始化
     icon         = transform.Find("Icon").GetComponent <GUISingleButton>();
     border       = GetComponent <UISprite>();
     icon.onClick = OnIconClick;
 }
Beispiel #12
0
 protected override void InitItem()
 {
     gradeIcon    = transform.GetComponent <UISprite>();
     icon         = transform.Find("Icon").GetComponent <GUISingleButton>();
     count        = transform.Find("Count").GetComponent <UILabel>();
     debris       = transform.Find("Debris");
     icon.onClick = OnIconClick;
 }
Beispiel #13
0
 /// <summary>
 /// item初始化函数
 /// </summary>
 protected override void InitItem()
 {
     label     = this.GetComponentInChildren <GUISingleLabel>();
     button    = this.GetComponentInChildren <GUISingleButton>();
     highlight = this.GetComponentInChildren <GUISingleSprite>();
     highlight.gameObject.SetActive(false);
     button.onClick = OnSelectServer;
 }
Beispiel #14
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 #15
0
    protected override void Init()
    {
        backBtn = transform.FindComponent <GUISingleButton>("backBtn");
        if (GameObject.Find("KGFMapSystem") != null)
        {
            itsKGFMapSystem = GameObject.Find("KGFMapSystem").gameObject;
        }

        backBtn.onClick = OnBackClick;
    }
Beispiel #16
0
 protected override void Init()
 {
     wayName      = transform.Find("WayName").GetComponent <UILabel>();
     isOpen       = transform.Find("IsOpen").GetComponent <UILabel>();
     btn          = transform.Find("Btn").GetComponent <GUISingleButton>();
     daguanSprite = transform.Find("DaguanSprite").GetComponent <UISprite>();
     bossIcon     = transform.Find("BossIcon").GetComponent <UISprite>();
     openSprite   = transform.Find("OpenSprite");
     btn.onClick  = OnBtnClick;
 }
Beispiel #17
0
 int iconLen = 30;//头像长度
 protected override void InitItem()
 {
     _instance     = this;
     icon          = transform.Find("Icon").GetComponent <GUISingleButton>();
     xuanZhongIcon = transform.Find("XuanZhongIcon");
     if (index == 0)
     {
         transform.gameObject.SetActive(true);
     }
     icon.onClick = OnIconClick;
 }
Beispiel #18
0
    public void SetNewChatHint(ChatData chatData)
    {
        chatBtn      = transform.Find("ChatBtn").GetComponent <GUISingleButton>();
        channelLabel = transform.Find("Channel").GetComponent <UILabel>();
        contentLabel = transform.Find("Content").GetComponent <UILabel>();
        //nickNameLabel = transform.Find("NickName").GetComponent<UILabel>();
        sprite = transform.Find("Sprite").GetComponent <UISprite>();
        if (chatData == null)
        {
            //channelLabel.gameObject.SetActive(false);
            //contentLabel.gameObject.SetActive(false);
            //sprite.gameObject.SetActive(false);
            SetChatPosition(false);
            //chatEffect.gameObject.SetActive(false);
            return;
        }
        else if (chatData != null)
        {
            //channelLabel.gameObject.SetActive(true);
            //contentLabel.gameObject.SetActive(true);
            SetChatPosition(UI_Setting.GetInstance().isShrink);
            //chatEffect.gameObject.SetActive(true);
        }
        chatEffect.gameObject.SetActive(GetNotReadCount() > 0?true:false);
        switch (chatData.Type)
        {
        case ChatType.WorldChat:
            channelLabel.text = "[fdee03]" + "【世界】" + "[-]";
            break;

        case ChatType.SocietyChat:
            channelLabel.text = "[0dd0f7]" + "【公会】" + "[-]";
            break;

        case ChatType.PrivateChat:
            channelLabel.text = "[db4bff]" + "【私聊】" + "[-]";
            break;

        case ChatType.NearbyChat:
            channelLabel.text = "附近";
            break;

        case ChatType.TroopsChat:
            channelLabel.text = "队伍";
            break;

        case ChatType.SystemChat:
            channelLabel.text = "系统";
            break;
        }
        //nickNameLabel.text = chatData.NickName;
        contentLabel.text = chatData.NickName + ":" + "[26c926]" + chatData.ChatContent + "[-]";
    }
Beispiel #19
0
 protected override void InitItem()
 {
     roleIcon   = transform.Find("RoleIcon").GetComponent <UISprite>();
     nameLabel  = transform.Find("NameLabel").GetComponent <UILabel>();
     levelLabel = transform.Find("LevelLabel").GetComponent <UILabel>();
     //powerLabel = transform.Find( "PowerLabel" ).GetComponent<UILabel>();
     serverBtn         = transform.Find("ServerBtn").GetComponent <GUISingleButton>();
     zoneName          = transform.Find("ServerBtn/Label").GetComponent <UILabel>();
     zoneState         = transform.Find("ServerBtn/Sprite").GetComponent <UISprite>();
     serverBtn.onClick = OnServerBtnClick;
     // SetData();
 }
Beispiel #20
0
    protected override void InitItem()
    {
        base.InitItem();
        icon           = transform.Find("Icon").GetComponent <GUISingleButton>();
        iconSprite     = transform.Find("Icon").GetComponent <UISprite>();
        mailStateIcon  = transform.Find("MailStateIcon").GetComponent <UISprite>();
        importanceIcon = transform.Find("Importance").GetComponent <UISprite>();
        accessoryIcon  = transform.Find("Accessory").GetComponent <UISprite>();
        deleteDate     = transform.Find("DeleteDate").GetComponent <UILabel>();
        mailTitle      = transform.Find("MailTitle").GetComponent <UILabel>();

        icon.onClick = OnIconClick;
    }
Beispiel #21
0
    void Start()
    {
        UI_FightTouch = transform.parent.FindChild("FightTouch").gameObject;
        UI_Setting    = transform.parent.FindChild("UISetting").gameObject;

        itsKGFMapSystem = GameObject.Find("KGFMapSystem").gameObject;

        switchBtn = transform.FindChild("switchBtn").gameObject.transform.GetComponent <GUISingleButton>();
        KGFmapBtn = transform.FindChild("KGFmapBtn").gameObject.transform.GetComponent <GUISingleButton>();

        switchBtn.onClick = OnSwitchBtnClick;
        KGFmapBtn.onClick = OnKGFmapBtnClick;
    }
Beispiel #22
0
 protected override void Init()
 {
     societyName           = "biaoyi";
     icon                  = transform.Find("SocietyIcon").GetComponent <UISprite>();
     createBtn             = transform.Find("CreateBtn").GetComponent <GUISingleButton>();
     nameInput             = transform.Find("NameInput").GetComponent <GUISingleInput>();
     joinLevelInput        = transform.Find("JoinLevelInput").GetComponent <GUISingleInput>();
     societyManifestoInput = transform.Find("SocietyManifestoInput").GetComponent <GUISingleInput>();
     lastIconBtn.onClick   = OnLastClick;
     nextIconBtn.onClick   = OnNextClick;
     createBtn.onClick     = OnCreateSocietyClick;
     changeIconBtn.onClick = OnChangeIconClick;
 }
Beispiel #23
0
 protected override void Init()
 {
     btn      = transform.Find("Btn").GetComponent <GUISingleButton>();
     itemName = transform.Find("ItemName").GetComponent <UILabel>();
     des      = transform.Find("Des").GetComponent <UILabel>();
     btnName  = transform.Find("Btn/BtnName").GetComponent <UILabel>();
     goods    = transform.Find("Goods").GetComponent <UISprite>();
     icon     = transform.Find("Goods/Icon").GetComponent <UISprite>();
     backObj  = transform.Find("Back").gameObject;
     sign     = transform.Find("Sign").GetComponent <UILabel>();
     UIEventListener.Get(backObj).onClick += OnCloseClick;
     btn.onClick = OnBtnClick;
 }
Beispiel #24
0
    /// <summary>
    /// item初始化函数
    /// </summary>
    void Awake()
    {
        //初始化
        upgradeBtn         = transform.Find("UpgradeBtn").GetComponent <GUISingleButton>();
        upgradeBtn.onClick = OnUpgradeBtnBtnClick;

        level.text = lvLevel.ToString();
        gold.text  = lvLevel * 100 + "";

        UIEventListener.Get(icon.gameObject).onPress = OnIconPress;

        GetComponent <BoxCollider>().enabled = false;
    }
Beispiel #25
0
 protected override void InitItem()
 {
     sprite        = transform.GetComponent <UISprite>();
     icon          = transform.Find("Icon").GetComponent <GUISingleButton>();
     count         = transform.Find("Count").GetComponent <GUISingleLabel>();
     getMask       = transform.Find("GetMask").GetComponent <UISprite>();
     xuanZhongIcon = transform.Find("XuanZhongIcon");
     debris        = transform.Find("Debris");
     if (index == 0)
     {
         transform.gameObject.SetActive(true);
     }
     icon.onClick = OnIconClick;
 }
Beispiel #26
0
 protected override void Init()
 {
     _searchHeroPanel  = UnityUtil.FindObjectRecursively(gameObject, "SearchHeroPanel").transform;
     _searchBtn        = UnityUtil.FindComponent <GUISingleButton>(_searchHeroPanel, "SearchBtn");
     _refreshBtn       = UnityUtil.FindComponent <GUISingleButton>(_searchHeroPanel, "RefreshBtn");
     _searchInput      = UnityUtil.FindComponent <GUISingleInput>(_searchHeroPanel, "SearchInput");
     multList          = transform.GetComponentsInChildren <GUISingleMultList>(true);
     checkBoxs.onClick = OnCheckClick;
     backBtn.onClick   = OnBackClick;
     view = transform.GetComponentInChildren <UIScrollView>().transform;
     _searchBtn.onClick     = OnSearch;
     _refreshBtn.onClick    = OnRefreshBtn;
     checkBoxs.DefauleIndex = 0;
 }
Beispiel #27
0
    /// <summary>
    /// 根据状态处理
    /// </summary>
    /// <param name="type"></param>
    void GetTypeHandle(int type, GUISingleButton botton, int boxIndex)
    {
        switch ((TaskProgress)type)
        {
        case TaskProgress.CantAccept: botton.delayTime = 0; break;

        case TaskProgress.Complete:
            switch (boxIndex)
            {
            case 1:
                effect[0].gameObject.SetActive(true);
                break;

            case 2:
                effect[1].gameObject.SetActive(true);
                break;

            case 3:
                effect[2].gameObject.SetActive(true);
                break;

            case 4:
                effect[3].gameObject.SetActive(true);
                break;
            }
            break;

        case TaskProgress.Reward:
            switch (boxIndex)
            {
            case 1:
                botton.spriteName = "baox1_open";
                break;

            case 2:
                botton.spriteName = "baox2_open";
                break;

            case 3:
                botton.spriteName = "baox3_open";
                break;

            case 4:
                botton.spriteName = "baox4_open";
                break;
            }
            break;
        }
    }
Beispiel #28
0
 protected override void Init()
 {
     backObj              = transform.Find("Mask").gameObject;
     societyIcon          = transform.Find("SocietyIcon").GetComponent <UISprite>();
     societyName          = transform.Find("SocietyName").GetComponent <UILabel>();
     societyID            = transform.Find("SocietyID").GetComponent <UILabel>();
     presidentName        = transform.Find("PresidentName").GetComponent <UILabel>();
     societyLevel         = transform.Find("SocietyLevel").GetComponent <UILabel>();
     allContributionValue = transform.Find("AllContributionValue").GetComponent <UILabel>();
     societyManifesto     = transform.Find("SocietyManifesto").GetComponent <UILabel>();
     applyforing          = transform.Find("Applyforing").GetComponent <UILabel>();
     joinBtn              = transform.Find("JoinBtn").GetComponent <GUISingleButton>();
     joinBtn.onClick      = OnJoinClick;
     UIEventListener.Get(backObj).onClick += OnCloseClick;
 }
Beispiel #29
0
    protected override void Init()
    {
        base.Init();
        singleton        = this;
        heroIcon.onClick = HeroIconOnClick;
        starGrid         = transform.Find("content/heroicon/Grid").GetComponent <UIGrid>();
        if (content == null)
        {
            content = transform.FindChild("content");
        }
        if (equipItemarr == null)
        {
            Transform obj;
            for (int i = 0; i < 6; i++)
            {
                obj = content.FindChild("Equip_" + (i + 1).ToString());
                if (obj != null)
                {
                    equipItemarr[i] = obj.GetComponent <EquipOpItem>();
                }
            }
        }

        if (BackBtn == null)
        {
            BackBtn = transform.Find("content/BackBtn").GetComponent <GUISingleButton>();
        }
        // SetTabButton();
        BackBtn.onClick       = OnClose;
        EquipOptTable.onClick = SetTabButton;
        SwitchHeroBtn.onClick = ChangHero;
        HeroPanel.onClick     = OnCloseHeroList;

        ////获取全部英雄
        //Dictionary<long, HeroNode> objDic = FSDataNodeTable<HeroNode>.GetSingleton().DataNodeList;
        //object hn;
        //int  count = playerData.GetInstance().herodataList.Count;

        //obj = new object[count];

        //for(int i = 0;i< playerData.GetInstance().herodataList.Count;i++)
        //{
        //    hn = objDic[playerData.GetInstance().herodataList[0].id];
        //    obj[i] = hn;
        //}
        //IntensifyBtn.onClick = ChangeTabeIntens;
        //   EvolveBtn.onClick = ChangeTabeEvolve;
    }
Beispiel #30
0
 private Transform xuanzhong;    //知否选中
 protected override void InitItem()
 {
     base.InitItem();
     titleName         = transform.Find("TitleName").GetComponent <UILabel>();
     pathWay           = transform.Find("Pathway").GetComponent <UILabel>();
     usefullLife       = transform.Find("Usefullife").GetComponent <UILabel>();
     putonBtn          = transform.Find("PutonBtn").GetComponent <GUISingleButton>();
     getoffBtn         = transform.Find("GetoffBtn").GetComponent <GUISingleButton>();
     icon              = transform.Find("Icon").GetComponent <GUISingleButton>();
     noNactivetedT     = transform.Find("Nonactivated");
     onPlayerBody      = transform.Find("OnPlayerBody");
     xuanzhong         = transform.Find("Xuanzhong");
     icon.onClick      = OnIconClick;
     putonBtn.onClick  = OnPutOnClick;
     getoffBtn.onClick = OnGetOffClick;
 }