Esempio n. 1
0
        public override void OnPointerClick(PointerEventData eventData)
        {
            base.OnPointerClick(eventData);

            SChatMessageObjectInfo emotionObj;

            emotionObj.type    = ChatItemType.ObjType_Image;
            emotionObj.subType = ChatItemSubType.ObjSubType_Image_Emotion;
            emotionObj.text    = "";
            emotionObj.param   = new Dictionary <String, String>();
            emotionObj.param.Add("id", emotionID.ToString());
            emotionObj.param.Add("type", ((int)emotionType).ToString());
            emotionObj.param.Add("serialid", serialID.ToString());
            emotionObj.param.Add("animkey", emotionKey);

            USendChatMessage uiData = new USendChatMessage();

            uiData.chatMsg = emotionObj.ToString();
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CHATBOX_SENDCHATMESSAGE, uiData);
        }
Esempio n. 2
0
        public void onSendChatMessage(USendChatMessage uiMsgData)
        {
            EMChatChannelType channelType = m_dropDownIndexToChannel [channelDropdown.value];

            UIUtil.SendChatMessage(channelType, uiMsgData.chatMsg);
        }