Exemple #1
0
    /// <summary>
    /// 공지사항 & 소개글 수정 버튼.
    /// </summary>
    /// <param name="go"></param>
    private void OnNoticeOrDescModify(GameObject go)
    {
        if (go != null)
        {
            SoundManager.Instance.PlayFX(enSoundFXUI.BUTTON_MEDIUM);
        }
        m_NoticeOrDescInput.gameObject.SetActive(m_bNoticeAndDescModifiy = !m_bNoticeAndDescModifiy);
        m_NoticeOrDescInput.isSelected = m_bNoticeAndDescModifiy;

        if (m_bNoticeAndDescModifiy == true)
        {
            m_NoticeOrDescInput.value = string.Empty;
        }
        else
        {
            _stGuildChangeDescReq stGuildChangeDescReq = new _stGuildChangeDescReq();
            stGuildChangeDescReq.kGuildKey = m_GuildDetailInfo.kGuildKey;

            if (m_NoticeAndDescType == enNoticeAndDesc.Notice)
            {
                stGuildChangeDescReq.kGuildNotice = m_NoticeOrDescInput.value;
                stGuildChangeDescReq.kGuildDesc   = m_GuildDetailInfo.kGuildDesc;
            }
            else if (m_NoticeAndDescType == enNoticeAndDesc.Desc)
            {
                stGuildChangeDescReq.kGuildNotice = m_GuildDetailInfo.kGuildNotice;
                stGuildChangeDescReq.kGuildDesc   = m_NoticeOrDescInput.value;
            }

            stGuildChangeDescReq.kJoinMethod = m_JoinType;

            CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildChangeDesc, stGuildChangeDescReq, typeof(_stGuildChangeDescAck));
        }
    }
Exemple #2
0
    private void ApprovalJoinReq(enSystemMessageFlag state)
    {
        if (state == enSystemMessageFlag.NO)
        {
            return;
        }

        _stGuildChangeDescReq stGuildChangeDescReq = new _stGuildChangeDescReq();

        stGuildChangeDescReq.kGuildKey    = m_GuildDetailInfo.kGuildKey;
        stGuildChangeDescReq.kGuildNotice = m_GuildDetailInfo.kGuildNotice;
        stGuildChangeDescReq.kGuildDesc   = m_GuildDetailInfo.kGuildDesc;
        stGuildChangeDescReq.kJoinMethod  = _enGuildJoinMethod.eGuildJoinMethod_Approval;

        CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildChangeDesc, stGuildChangeDescReq, typeof(_stGuildChangeDescAck));
    }