Example #1
0
    // 관리UI의 정보들 설정
    private void Set_InfoManagement()
    {
        User _user = UserDataManager.instance.user;


        //유저의 클랜멤버등급 저장
        clanRank = Dic_ExistClanMember[userMemberIdx].CnRank;

        //마스터인지 체크
        if (clanRank == (byte)CLAN_MEMBER_TYPE.MASTER)
        {
            isMaster = true;
        }
        else
        {
            isMaster = false;
        }

        //클마 이면 관련오브젝트 활성 , 아니라면 비활성
        Activate_ClanMaterOBJ(isMaster);

        //클랜아이디
        text_clanID.text = _user.user_Clans.ClanID.ToString();

        //클랜 마크
        image_clanMark.sprite = ImageManager.instance.Get_Sprite(string.Format("{0}{1}", DefineKey.clanmark, _user.clan_Clans.ClanMark));

        //클랜이름
        text_clanName.text = _user.clan_Clans.ClanName.ToString();
        //Lst_inputs[1].text = user.clan_Clans.ClanName.ToString();


        //클랜현재 수
        text_numOfClan.text = string.Format("{0}/{1}", Dic_ExistClanMember.Count, _user.clan_Clans.PersonCnt);

        //클랜 소개글
        if (_user.clan_Clans.ClanInfoTxt != "")
        {
            input_ClanIntro.text = _user.clan_Clans.ClanInfoTxt;
        }

        //=====클랜버프
        //골드 버프 가격
        //Lst_textClanBuffPrice[(int)BUFF_TYPE.CLANGOLD - 2].text = TableDataManager.instance.Infos_ConstValues[(int)ConstValue_TYPE.Const_ClanBuffPrice].ConsVal.ToString();

        //골드버프 비율
        Lst_textClanBuffRateValue[(int)BUFF_TYPE.CLANGOLD - 2].text = string.Format("{0}%", TableDataManager.instance.Infos_ConstValues[(int)ConstValue_TYPE.Const_ClanGoldBuffRateValue].ConsVal);

        //골드버프 시간
        if (_user.clan_Clans.GoldBufTm >= TimeManager.Instance.Get_nowTime())
        //if (_user.clan_Clans.GoldBufTm > DateTime.MinValue) // 임시임 위에가 진짜임
        {
            if (!Dic_BuffRoutines.ContainsKey("GoldBuff"))
            {
                Coroutine routine = StartCoroutine(StaticMethod.routine_GetLeftTime(_user.clan_Clans.GoldBufTm, Lst_textClanBuffTm[(int)BUFF_TYPE.CLANGOLD - 2], 1));
                Dic_BuffRoutines["GoldBuff"] = routine;
                Lst_buffTmOBJ[(int)BUFF_TYPE.CLANGOLD - 2].SetActive(true);
            }
            else
            {
                StopCoroutine(Dic_BuffRoutines["GoldBuff"]);

                Coroutine routine = StartCoroutine(StaticMethod.routine_GetLeftTime(_user.clan_Clans.GoldBufTm, Lst_textClanBuffTm[(int)BUFF_TYPE.CLANGOLD - 2], 1));
                Dic_BuffRoutines["GoldBuff"] = routine;
                Lst_buffTmOBJ[(int)BUFF_TYPE.CLANGOLD - 2].SetActive(true);
            }
        }
        else
        {
            Dic_BuffRoutines.Remove("GoldBuff");
            Lst_textClanBuffTm[(int)BUFF_TYPE.CLANGOLD - 2].text = TextDataManager.Dic_TranslateText[112];            //미적용
            Lst_buffTmOBJ[(int)BUFF_TYPE.CLANGOLD - 2].SetActive(false);
        }


        //exp 버프 가격
        //Lst_textClanBuffPrice[(int)BUFF_TYPE.CLANEXP +1].text = TableDataManager.instance.Infos_ConstValues[(int)ConstValue_TYPE.Const_ClanBuffPrice].ConsVal.ToString();

        //exp 버프 비율
        Lst_textClanBuffRateValue[(int)BUFF_TYPE.CLANEXP + 1].text = string.Format("{0}%", TableDataManager.instance.Infos_ConstValues[(int)ConstValue_TYPE.Const_ClanExpBuffRateValue].ConsVal);
        //exp 버프
        if (_user.clan_Clans.ExpBufTm >= TimeManager.Instance.Get_nowTime())
        //if (_user.clan_Clans.ExpBufTm > DateTime.MinValue) // 임시임 위에가 진짜임
        {
            if (!Dic_BuffRoutines.ContainsKey("ExpBuff"))
            {
                Coroutine routine = StartCoroutine(StaticMethod.routine_GetLeftTime(_user.clan_Clans.ExpBufTm, Lst_textClanBuffTm[(int)BUFF_TYPE.CLANEXP + 1], 1));
                Dic_BuffRoutines["ExpBuff"] = routine;
                Lst_buffTmOBJ[(int)BUFF_TYPE.CLANEXP + 1].SetActive(true);
            }
            else
            {
                StopCoroutine(Dic_BuffRoutines["ExpBuff"]);

                Coroutine routine = StartCoroutine(StaticMethod.routine_GetLeftTime(_user.clan_Clans.ExpBufTm, Lst_textClanBuffTm[(int)BUFF_TYPE.CLANEXP + 1], 1));
                Dic_BuffRoutines["ExpBuff"] = routine;
                Lst_buffTmOBJ[(int)BUFF_TYPE.CLANEXP + 1].SetActive(true);
            }
        }
        else
        {
            Dic_BuffRoutines.Remove("ExpBuff");
            Lst_textClanBuffTm[(int)BUFF_TYPE.CLANEXP + 1].text = TextDataManager.Dic_TranslateText[112];            //미적용
            Lst_buffTmOBJ[(int)BUFF_TYPE.CLANEXP + 1].SetActive(false);
        }
    }