Exemplo n.º 1
0
    //킬문구 변경
    public void ResponseInput_EndChangeKillMsg()
    {
        User _user = UserDataManager.instance.user;


        if (!lst_InputGame[1].wasCanceled)
        {
            string changedName = lst_InputGame[1].text;
            if (!TextDataManager.Chk_BannedLetter(ref changedName))
            {
                webRequest.SetWords(lst_InputGame[1].text, callback_complete_ChangeKillmsg);
                changedTxt            = lst_InputGame[1].text;
                lst_InputGame[1].text = "";
            }
            else
            {
                UI_Popup_Toast popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST);
                popup.SetPopupMessage(TextDataManager.Dic_ErrorCode[111]);                //사용 불가능한 문자열이 포함 되어있습니다.

                Set_AccounInfo();

                lst_InputGame[1].text = "";
            }
        }
        else
        {
            if (_user.User_Words.ContainsKey(USERWORD_TYPE.WRD_KILL))
            {
                text_Killmsg.text = _user.User_Words[USERWORD_TYPE.WRD_KILL].Words;
            }
        }
    }
    ///////////////////////===============================================================================================//////////////////////////////////
    ///////////////////////===========================			채팅관련        ================================//////////////////////////////////
    ///////////////////////===============================================================================================//////////////////////////////////


    //입력완료시
    public void ResponseInput_End()
    {
        input_chat.gameObject.SetActive(false);
        if (!input_chat.wasCanceled)
        {
            txtChat = input_chat.text;
            if (!string.IsNullOrEmpty(txtChat))
            {
                Debug.Log("txtChat : " + txtChat);
                //욕설인지 체크 : 욕설은 *로 바껴서 나옴
                TextDataManager.Chk_BannedLetter(ref txtChat);

                //채팅메세지 데이터 보내기
                Network_MainMenuSoketManager.Getsingleton.Send_CTS_ChatMessage(1, txtChat);
            }
            else
            {
                Debug.Log("empty");
                input_chat.text = "";
            }
        }
        else
        {
            Debug.Log("cancle");
        }
        input_chat.text = "";
    }
 void RequestClanNameChange()
 {
     //욕설인지 체크
     if (!TextDataManager.Chk_BannedLetter(ref changedName))
     {
         webRequest.ClanNameChange(5, changedName, Respons_delegate);
     }
     else
     {
         UI_Popup_Toast popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST);
         popup.SetPopupMessage(TextDataManager.Dic_ErrorCode[111]);            //사용 불가능한 문자열이 포함 되어있습니다.
         inputfield_changeName.text = "";
     }
 }
Exemplo n.º 4
0
    // 클랜 소개글 input 이 끝난 뒤 호출 되는 매서드
    public void ResponseInput_End_ChangeIntro()
    {
        changedClanIntroTxt = input_ClanIntro.text;
        input_ClanIntro.gameObject.SetActive(false);

        if (!TextDataManager.Chk_BannedLetter(ref changedClanIntroTxt))
        {
            webRequest.ClanInfoTxtChange(changedClanIntroTxt, null);
        }
        else
        {
            UI_Popup_Toast popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST);
            popup.SetPopupMessage(TextDataManager.Dic_ErrorCode[111]);            //사용 불가능한 문자열이 포함 되어있습니다.

            input_ClanIntro.text = "";
        }
    }
Exemplo n.º 5
0
    public void ReseponseInput_writeEnd()
    {
        string bodText = input_write.text;

        if (!string.IsNullOrEmpty(bodText))
        {
            if (!TextDataManager.Chk_BannedLetter(ref bodText))
            {
                webRequest.ClanBodWrite(bodText, callback_Complete_writeBoard);
                input_write.text = "";
            }
            else
            {
                UI_Popup_Toast popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST);
                popup.SetPopupMessage(TextDataManager.Dic_ErrorCode[111]);                //사용 불가능한 문자열이 포함 되어있습니다.

                input_write.text = "";
            }
        }
    }
Exemplo n.º 6
0
    //클랜생성
    public void ResponseButton_ClanCreate()
    {
        if (createClanName == null || createClanName.Length <= 1)
        {
            UI_Popup_Toast popuptoast = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST);
            popuptoast.SetPopupMessage(TextDataManager.Dic_TranslateText[152]);
            return;
        }
        else
        {
            if (!TextDataManager.Chk_BannedLetter(ref createClanName))
            {
                webRequest.ClanMake(createClanName, callback_complete_CreateClan);
            }
            else
            {
                UI_Popup_Toast popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST);
                popup.SetPopupMessage(TextDataManager.Dic_ErrorCode[111]);                //사용 불가능한 문자열이 포함 되어있습니다.

                input_ClanCreate.text = "";
            }
        }
    }
Exemplo n.º 7
0
    //유저이름 변경
    public void ResponseInput_EndChangeName()
    {
        User _user = UserDataManager.instance.user;

        if (!lst_InputGame[0].wasCanceled)
        {
            if (_user.User_Times.ContainsKey((int)TIMEIDX.USERNAME))
            {
                User_Times Usertime = _user.User_Times[(int)TIMEIDX.USERNAME];

                if (Usertime.Etime >= TimeManager.Instance.Get_nowTime())
                {
                    //토스트팝업
                    UI_Popup_Toast popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST);
                    popup.SetPopupMessage(TextDataManager.Dic_TranslateText[244]);                    //이름변경은 1일 1회 입니다.

                    Set_AccounInfo();

                    lst_InputGame[0].text = "";
                }
                else
                {
                    string changedName = lst_InputGame[0].text;
                    if (!TextDataManager.Chk_BannedLetter(ref changedName))
                    {
                        webRequest.UserNameChange(lst_InputGame[0].text, 0, callback_complete_changeName);
                        lst_InputGame[0].text = "";
                    }
                    else
                    {
                        UI_Popup_Toast popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST);
                        popup.SetPopupMessage(TextDataManager.Dic_ErrorCode[111]);                        //사용 불가능한 문자열이 포함 되어있습니다.

                        Set_AccounInfo();

                        lst_InputGame[0].text = "";
                    }
                }
            }
            else
            {
                string changedName = lst_InputGame[0].text;
                if (!TextDataManager.Chk_BannedLetter(ref changedName))
                {
                    webRequest.UserNameChange(lst_InputGame[0].text, 0, callback_complete_changeName);
                    lst_InputGame[0].text = "";
                }
                else
                {
                    UI_Popup_Toast popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST);
                    popup.SetPopupMessage(TextDataManager.Dic_ErrorCode[111]);                    //사용 불가능한 문자열이 포함 되어있습니다.

                    Set_AccounInfo();

                    lst_InputGame[0].text = "";
                }
            }
        }
        else
        {
            text_NkNm.text = _user.user_Users.NkNm;
        }
    }
Exemplo n.º 8
0
 /// <summary>
 /// 채팅메세지 보내기
 /// </summary>
 public void Send_ChatMessage(string msg)
 {
     //욕설인지 체크 : 욕설은 *로 바껴서 나옴
     TextDataManager.Chk_BannedLetter(ref msg);
     Network_MainMenuSoketManager.Getsingleton.Send_CTS_ChatMessage(1, msg);
 }