private void OnMsg_chatviewOpenView(MobaMessage msg) { if (msg.Param != null) { ChitchatType chitchatType = (ChitchatType)((int)msg.Param); MobaMessageManagerTools.SendClientMsg(ClientV2C.chatviewInitRoom, chitchatType, false); } }
private void OnMsg_chatviewChangeRoom(MobaMessage msg) { if (msg.Param != null) { ChitchatType chitchatType = (ChitchatType)((int)msg.Param); this.mRoomChatRoot.SetActive(chitchatType == ChitchatType.Lobby); } }
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); } }
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]); } } }
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); } }
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; } } } }
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); } }