//聊天展示接口 private void sendMsgFPort(int _chatChannelType) { EquipChooseWindow fwin = fatherWindow as EquipChooseWindow; ChatSendMsgFPort fport = FPortManager.Instance.getFPort("ChatSendMsgFPort") as ChatSendMsgFPort; if (fwin.comeFrom != EquipChooseWindow.FROM_CHAT_FRIEND) { fport.access(_chatChannelType, null, ChatManagerment.SHOW_Equip, equip.uid, null); } else { fport.access(ChatManagerment.Instance.CurrentFriendInfo.getUid(), UserManager.Instance.self.uid, _chatChannelType, null, ChatManagerment.SHOW_Equip, equip.uid, null); } }
//发送消息调用 private void sendMsgFPort() { string str = msgInput.label.text; if (str.Replace(" ", "") == "") { MaskWindow.UnlockUI(); return; } if (msgInput.label.text == null) { MaskWindow.UnlockUI(); return; } ChatSendMsgFPort fport = FPortManager.Instance.getFPort("ChatSendMsgFPort") as ChatSendMsgFPort; if (sendType == ChatManagerment.CHANNEL_FRIEND) { if (ChatManagerment.Instance.CurrentFriendInfo == null) { UiManager.Instance.openDialogWindow <MessageLineWindow>((win) => { win.Initialize(LanguageConfigManager.Instance.getLanguage("s0485")); }); } else { saveCacheRecent(); fport.access(ChatManagerment.Instance.CurrentFriendInfo.getUid(), UserManager.Instance.self.uid, sendType, msgInput.label.text, null, null, onReceiveSendMsg); } } else { if (ChatManagerment.Instance.Filter(msgInput.label.text, sendType)) { onReceiveSendMsg(); } else { fport.access(sendType, msgInput.label.text, null, null, onReceiveSendMsg); } } }
//聊天展示接口 private void sendMsgFPort(int _chatChannelType) { ChatSendMsgFPort fport = FPortManager.Instance.getFPort("ChatSendMsgFPort") as ChatSendMsgFPort; fport.access(_chatChannelType, null, ChatManagerment.SHOW_CARD, card.uid, null); }