Пример #1
0
 private void OnMsg_chatviewOpenView(MobaMessage msg)
 {
     if (msg.Param != null)
     {
         ChitchatType chitchatType = (ChitchatType)((int)msg.Param);
         MobaMessageManagerTools.SendClientMsg(ClientV2C.chatviewInitRoom, chitchatType, false);
     }
 }
Пример #2
0
 private void OnMsg_chatviewChangeRoom(MobaMessage msg)
 {
     if (msg.Param != null)
     {
         ChitchatType chitchatType = (ChitchatType)((int)msg.Param);
         this.mRoomChatRoot.SetActive(chitchatType == ChitchatType.Lobby);
     }
 }
Пример #3
0
 private void OnMsg_chatviewInitRoom(MobaMessage msg)
 {
     if (msg.Param != null)
     {
         ChitchatType chitchatType = (ChitchatType)((int)msg.Param);
         this.CurrType = chitchatType;
         this.lobbyToggle.gameObject.SetActive(chitchatType == ChitchatType.Lobby);
     }
 }
Пример #4
0
 private void OnMsg_chatviewChangeRoom(MobaMessage msg)
 {
     if (msg.Param != null)
     {
         ChitchatType chitchatType = (ChitchatType)((int)msg.Param);
         this.transFriendChat.gameObject.SetActive(chitchatType == ChitchatType.Friend);
         Dictionary <byte, object> dictionary = new Dictionary <byte, object>();
         dictionary.Add(102, (chitchatType != ChitchatType.Friend) ? null : this.selectFriendItem);
         NetWorkHelper.Instance.client.SendSessionChannelMessage(7, MobaChannel.Chat, dictionary);
         if (chitchatType == ChitchatType.Friend)
         {
             SendMsgManager.SendMsgParam param = new SendMsgManager.SendMsgParam(true, LanguageManager.Instance.GetStringById("SummonerUI_Passport_Tips_RefreshData"), true, 15f);
             SendMsgManager.Instance.SendMsg(MobaFriendCode.Friend_GetFriendList, param, new object[0]);
         }
     }
 }
Пример #5
0
 private void OnMsg_chatviewChangeRoom(MobaMessage msg)
 {
     if (msg.Param != null)
     {
         ChitchatType chitchatType = (ChitchatType)((int)msg.Param);
         this.ccType = chitchatType;
         this.GetSetEmojiPanelState(false);
         this.transHallChat.gameObject.SetActive(chitchatType == ChitchatType.Hall);
         this.usv.contentPivot = UIWidget.Pivot.Bottom;
         this.usv.ResetPosition();
         this.JudgePosition();
         if (this.task_countDown != null && this.task_countDown.Running)
         {
             return;
         }
         this.CheckInputState(chitchatType == ChitchatType.Hall);
     }
 }
Пример #6
0
 private void ChangeToggle()
 {
     if (UIToggle.current.value)
     {
         if (this.playerInfoController != null)
         {
             this.playerInfoController.Hide();
         }
         foreach (KeyValuePair <ChitchatType, UIToggle> current in this.dicToggle)
         {
             if (current.Value == UIToggle.current)
             {
                 this.CurrType = current.Key;
                 break;
             }
         }
     }
 }
Пример #7
0
 private void FillEmojiToField(GameObject obj, EmojiItem ei)
 {
     if (null != obj)
     {
         ChitchatType chitchatType = this.currType;
         if (chitchatType != ChitchatType.Friend)
         {
             if (chitchatType == ChitchatType.Lobby)
             {
                 UIInput expr_4D = this.lobbyEmojiField;
                 expr_4D.value += ei.EmojiName;
             }
         }
         else
         {
             UIInput expr_2C = this.friendEmojiField;
             expr_2C.value += ei.EmojiName;
         }
         this.GetSetEmojiPanelState(false, this.nowSprite);
     }
 }