Example #1
0
    //===================================================================================
    //
    // Method
    //
    //===================================================================================
    public void Init(MyGuildMain parent, CGuildDetail kGuildDetailInfo)
    {
        m_iGuildWaitingCount       = (int)CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.Guild_Waiting_Count).Value;
        m_iGuildMarkChangeCountDia = (int)CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.Guild_MarkChange_Count_Dia).Value;
        m_iGuildNotifyCount        = (int)CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.Guild_Notify_Count).Value;         // 길드 공지글 글자 수.
        m_iGuildIntroStringCount   = (int)CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.Guild_IntroString_Count).Value;    // 길드 소개글 글자 수.

        m_ParentWindow = parent;
        if (m_GuildOrderCaptainButton != null)
        {
            UIEventListener.Get(m_GuildOrderCaptainButton).onClick = m_ParentWindow.OnGuildDelegation;
        }
        if (m_GuildOrderSubCaptainButton != null)
        {
            UIEventListener.Get(m_GuildOrderSubCaptainButton).onClick = m_ParentWindow.OnGuildOrderSubCaptain;
        }

        m_GuildDetailInfo      = kGuildDetailInfo;
        _originGuildJoinMethod = m_GuildDetailInfo.kJoinMethod;

        m_WindowTitleLabel.text  = StringTableManager.GetData(6276);
        m_EmblemChangeLabel.text = StringTableManager.GetData(6595);    // 6595    길드 마크 변경.

        m_NoticeButton.SetLabel(StringTableManager.GetData(6255));
        m_DescButton.SetLabel(StringTableManager.GetData(6249));

        m_GuildOrderCaptainButtonLabel.text    = StringTableManager.GetData(6294);
        m_GuildOrderSubCaptainButtonLabel.text = StringTableManager.GetData(6298);
        m_GuildDeleteButtonLabel.text          = StringTableManager.GetData(6304);

        m_FreeJoinButton.SetLabel(StringTableManager.GetData(6233));
        m_ApprovalJoinButton.SetLabel(StringTableManager.GetData(6239));

        byte kCurrMemberCount = m_GuildDetailInfo.kCurrMemberCount;
        byte kMaxMemberCount  = m_GuildDetailInfo.kMaxMemberCount;

        // 6254 길드원 ({0} / {1})
        //m_GuildMemberCountLabel.text = string.Format(StringTableManager.GetData(6254), kCurrMemberCount, kMaxMemberCount);

        SetMyGuildInfo(m_GuildDetailInfo);
        SetMyGuildMember(m_GuildDetailInfo.kGuildKey, m_GuildDetailInfo.vMembers);

        // 길드 공지사항이나 소개글을 쓸수 있는 인풋을 막는다.
        m_NoticeOrDescInput.gameObject.SetActive(m_bNoticeAndDescModifiy);

        if (m_GuildMemberButton != null)
        {
            string szLabeltext = string.Format(StringTableManager.GetData(6254), kCurrMemberCount, kMaxMemberCount);
            m_GuildMemberButton.SetLabel(szLabeltext);

            m_GuildMemberButton.state = ButtonState.On;
        }
    }
Example #2
0
    //===================================================================================
    //
    // Method
    //
    //===================================================================================
    public void Init(MyGuildMain parent)
    {
        m_ParentWindow = parent;

        if (m_ParentWindow != null)
        {
            if (m_GuildModifyButton != null)
            {
                UIEventListener.Get(m_GuildModifyButton).onClick = m_ParentWindow.OnGuildModify;
            }
            if (m_GuildSubCaptainModifyButton != null)
            {
                UIEventListener.Get(m_GuildSubCaptainModifyButton).onClick = m_ParentWindow.OnGuildModify;
            }
        }

        // 6752	봉헌
        //_TributeButton.SetNew(UserInfo.Instance.otherNew.IsGuildAttendance);
        _TributeButton.SetLabel(StringTableManager.GetData(6752));
        _TributeButton.state = ButtonState.On;

        m_TodayAttendanceTitleLabel.text = StringTableManager.GetData(6586); // 6586    오늘 출석 인원.

        m_NoticeButton.SetLabel(StringTableManager.GetData(6255));
        m_DescButton.SetLabel(StringTableManager.GetData(6249));

        // 6592    체크 하시면 길드장 위임을 받을 수 있는 상태가 됩니다.
        m_CommissionCheckButton.SetLabel(StringTableManager.GetData(6592));

        m_GuildLeaveButtonLabel.text  = StringTableManager.GetData(6256);
        m_GuildModifyButtonLabel.text = StringTableManager.GetData(6276);

        m_GuildSubCaptainLeaveButtonLabel.text  = StringTableManager.GetData(6256);
        m_GuildSubCaptainModifyButtonLabel.text = StringTableManager.GetData(6276);

#if UNITY_EDITOR && GUILD_RAID
        _GuildRaidButton.gameObject.SetActive(true);
        _GuildRaidButton.SetLabel(StringTableManager.GetData(6753));        // 6753	길드 레이드
#else
        _GuildRaidButton.gameObject.SetActive(false);
#endif
        c.gameObject.SetActive(false);
        d.gameObject.SetActive(false);

        _attendanceRewardButton.state = ButtonState.Off;
        _attendanceRewardButton.SetLabel(string.Format(StringTableManager.GetData(8679), 0)); // 8679    X{0}
        _attendanceRewardButtonLabel.text = StringTableManager.GetData(3467);                 // 3467	모두 받기
    }