コード例 #1
0
 public void On_List_Item_Click(int index)
 {
     if (this._tab == Tab.Template)
     {
         if (!this.bIsInChatSend_CD)
         {
             if (Singleton <CChatController> .instance.model.IsTemplate_IndexValid(index))
             {
                 if (CFakePvPHelper.bInFakeSelect)
                 {
                     CFakePvPHelper.FakeSendChatTemplate(index);
                 }
                 else
                 {
                     CChatNetUT.Send_SelectHero_Chat((uint)index);
                 }
                 this.Start_Input_Timer();
                 this.On_Bottom_Btn_Click();
             }
         }
         else
         {
             Singleton <CUIManager> .instance.OpenTips("Chat_Common_Tips_9", true, 1f, null, new object[0]);
         }
     }
 }
コード例 #2
0
 public void On_Send_Text()
 {
     if (!this.bIsInChatSend_CD)
     {
         if (this.inputField != null)
         {
             string text = this.inputField.text;
             if (!string.IsNullOrEmpty(text))
             {
                 if (CFakePvPHelper.bInFakeSelect)
                 {
                     CFakePvPHelper.FakeSendChat(text);
                 }
                 else
                 {
                     CChatNetUT.Send_SelectHero_Chat(text);
                 }
                 this.Start_Input_Timer();
                 this.inputField.text = string.Empty;
             }
         }
     }
     else
     {
         Singleton <CUIManager> .instance.OpenTips("Chat_Common_Tips_9", true, 1f, null, new object[0]);
     }
 }
コード例 #3
0
    private void OnComplaintsOk(CUIEvent uiEvent)
    {
        CChatView view = Singleton <CChatController> .instance.view;

        if (view == null || view.CurTab == EChatChannel.None || view.CurTab == EChatChannel.Default)
        {
            return;
        }
        if (string.IsNullOrEmpty(this.m_ComplanText) || string.IsNullOrEmpty(this.m_ComplanName))
        {
            Singleton <CUIManager> .instance.OpenMessageBox(Singleton <CTextManager> .instance.GetText("COMPLAINT_Error"), false);

            return;
        }
        CChatNetUT.Send_Complaints_Chat_Req(this.m_CurSelectedUuid, (uint)this.m_CurSelectedLogicWorld, this.m_ComplanName, this.m_ComplanOpenId, this.m_ComplanText, (uint)CChatUT.Convert_Channel_ChatMsgType(view.CurTab));
        Singleton <CChatController> .instance.model.complanCount += 1u;
    }