private void OnClickEmoticon(IUIObject obj) { if (this.m_eChatType == CHAT_TYPE.BABELPARTY || this.m_eChatType == CHAT_TYPE.MYTHRAID) { BabelTower_ChatDlg babelTower_ChatDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BABELTOWER_CHAT) as BabelTower_ChatDlg; if (babelTower_ChatDlg != null) { babelTower_ChatDlg.AddChatText((string)obj.Data); } } else if (this.m_eChatType == CHAT_TYPE.NUM) { New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg; if (new_Whisper_Dlg != null) { new_Whisper_Dlg.AddChatText((string)obj.Data); } } else if (this.m_eChatType == CHAT_TYPE.STORYCHAT) { StoryChatDetailDlg storyChatDetailDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.STORYCHATDETAIL_DLG) as StoryChatDetailDlg; if (storyChatDetailDlg != null) { storyChatDetailDlg.AddComment((string)obj.Data); } } else { ChatManager.AddChatText((string)obj.Data); } }
private void ClickStoryChatList(IUIObject obj) { if (obj == null) { return; } if (null == this.m_StoryChatList.SelectedItem) { return; } StoryChat_Info storyChat_Info = this.m_CurrentStoryChatInfo[this.m_StoryChatList.SelectedItem.GetIndex()]; if (storyChat_Info != null) { StoryChatDetailDlg storyChatDetailDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.STORYCHATDETAIL_DLG) as StoryChatDetailDlg; if (storyChatDetailDlg != null) { storyChatDetailDlg.SetStoryChat(storyChat_Info, this.m_bBattleReplay); } } }