Esempio n. 1
0
    private void SetUI()
    {
        MyHead.BtnPre.gameObject.SetActive(m_BuildList.Count > 1 ? true : false);
        MyHead.BtnNext.gameObject.SetActive(m_BuildList.Count > 1 ? true : false);

        SetData();
        SetName(m_Info.m_name, m_Info.Quality);
        NGUIUtil.SetStarLevelNum(MyHead.SprStars, m_Info.StarLevel);
        NGUIUtil.SetTrapTypeIcon(MyHead.SprRoleType, m_Info.m_RoomKind);
        MyHead.LblRoleTypeName.text = NGUIUtil.GetTrapTypeName(m_Info.m_RoomKind);
        AddDetailInfo(m_Info, m_wndType);

        SetFragmentLabel();

        DoCanLevelUp();
        DoCanUpStar();

        if (m_Info.BuildType == 1300)
        {
            MyHead.BtnChaiJie.gameObject.SetActive(false);
        }
        else
        {
            MyHead.BtnChaiJie.gameObject.SetActive(true);
        }
    }