Exemplo n.º 1
0
        private void OnCallBack()
        {
            // 通知触发私聊
            ChatBoxPrivateChat msgData = new ChatBoxPrivateChat();

            msgData.msgID = (int)WndMsgID.WND_MSG_CHATBOX_PRIVATECHAT;
            msgData.name  = m_ActorName;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CHATBOX_PRIVATECHAT, msgData);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 选择私聊
        /// </summary>
        public void selectPrivateChat(ChatBoxPrivateChat msgData)
        {
            // 输入框设置私聊格式
            addPrivateChatToInputField(msgData.name);

            // 查找私聊频道的下标
            int index = 0;

            foreach (EMChatChannelType type in m_dropDownIndexToChannel)
            {
                if (type == EMChatChannelType.CHAT_CHANNEL_PRIVATE)
                {
                    break;
                }
                index++;
            }
            channelDropdown.value = index;
        }