Пример #1
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> .get_instance().OpenTips("Chat_Common_Tips_9", true, 1.5f, null, new object[0]);
     }
 }
Пример #2
0
    public void On_List_Item_Click(int index)
    {
        if (this._tab == CHeroSelectChatView.Tab.Template)
        {
            if (!this.bIsInChatSend_CD)
            {
                bool flag = Singleton <CChatController> .get_instance().model.IsTemplate_IndexValid(index);

                if (flag)
                {
                    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> .get_instance().OpenTips("Chat_Common_Tips_9", true, 1.5f, null, new object[0]);
            }
        }
    }