public override void Update() { if (NrTSingleton <FormsManager> .Instance.GetForm(G_ID.CHAT_MOBILE_SUB_DLG) != null) { return; } for (int i = 0; i < 7; i++) { if (0 < this._Manager.GetChatMsgCount()) { MainChatMsg mainChatMsg = this._Manager.ChatMsgDequeue(); if (string.Empty == mainChatMsg.color) { mainChatMsg.color = ChatManager.GetChatColorKey(mainChatMsg.type); } ChatLabel chatLable = this.GetChatLable(mainChatMsg.type); if (null != chatLable) { chatLable.PushText(mainChatMsg.name, mainChatMsg.msg, mainChatMsg.color, mainChatMsg.linkItem); } this._clChatAll.PushText(mainChatMsg.name, mainChatMsg.msg, mainChatMsg.color, mainChatMsg.linkItem); } } if (0 < this._Manager.GetCharChatCount()) { CharChat charChat = this._Manager.CharChatDequeue(); if (charChat.Character != null) { charChat.Character.MakeChatText(charChat.msg, true); } } }
public override void Update() { if (this.IsChatFocused() != this.bOldTextFieldFocus) { this.bOldTextFieldFocus = this.IsChatFocused(); } if (0 < this._Manager.GetChatMsgCount()) { MainChatMsg mainChatMsg = this._Manager.ChatMsgDequeue(); if (string.Empty == mainChatMsg.color) { mainChatMsg.color = ChatManager.GetChatColorKey(mainChatMsg.type); } this._clChat.PushText(mainChatMsg.name, mainChatMsg.msg, mainChatMsg.color, mainChatMsg.linkItem); if (mainChatMsg.type == CHAT_TYPE.GUILD) { this._clChatGuild.PushText(mainChatMsg.name, mainChatMsg.msg, mainChatMsg.color, mainChatMsg.linkItem); } if (this.m_MainChat != null) { ChatLabel chatLable = this.m_MainChat.GetChatLable(CHAT_TYPE.ALL); if (chatLable != null) { chatLable.PushText(mainChatMsg.name, mainChatMsg.msg, mainChatMsg.color, mainChatMsg.linkItem); } } TournamentLobbyDlg tournamentLobbyDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.TOURNAMENT_LOBBY_DLG) as TournamentLobbyDlg; if (tournamentLobbyDlg != null) { ChatLabel chatLable2 = tournamentLobbyDlg.GetChatLable(CHAT_TYPE.ALL); if (chatLable2 != null) { chatLable2.PushText(mainChatMsg.name, mainChatMsg.msg, mainChatMsg.color, mainChatMsg.linkItem); } } } if (0 < this._Manager.GetCharChatCount()) { CharChat charChat = this._Manager.CharChatDequeue(); if (charChat.Character != null) { charChat.Character.MakeChatText(charChat.msg, true); } } }
public override void Update() { if (Input.imeIsSelected != this.bLanguage) { this.bLanguage = Input.imeIsSelected; this._dtChatLag.SetTexture((!this.bLanguage) ? "Main_I_ChatEng" : "Main_I_ChatHan"); } if (this.IsChatFocused() != this.bOldTextFieldFocus) { this.bOldTextFieldFocus = this.IsChatFocused(); } for (int i = 0; i < 7; i++) { if (0 < this._Manager.GetChatMsgCount()) { MainChatMsg mainChatMsg = this._Manager.ChatMsgDequeue(); if (string.Empty == mainChatMsg.color) { mainChatMsg.color = ChatManager.GetChatColorKey(mainChatMsg.type); } ChatLabel chatLable = this.GetChatLable(mainChatMsg.type); if (null != chatLable) { chatLable.PushText(mainChatMsg.name, mainChatMsg.msg, mainChatMsg.color, mainChatMsg.linkItem); } this._clChatAll.PushText(mainChatMsg.name, mainChatMsg.msg, mainChatMsg.color, mainChatMsg.linkItem); } } if (0 < this._Manager.GetCharChatCount()) { CharChat charChat = this._Manager.CharChatDequeue(); if (charChat.Character != null) { charChat.Character.MakeChatText(charChat.msg, true); } } }