private void OnInputText(IKeyFocusable obj) { if (this.m_FeedData != null) { this.m_FeedData.User_Message = this.m_taMessage.Text; } }
private void OnLostInputText(IKeyFocusable obj) { if (this.bNotTextKeypadEnter && this.IsChatFocused()) { this.SetChatFocus(); } }
// A sample commit delegate. // Prints a string to the console when the player // commits input to a text field. void MyCommitDelegate(IKeyFocusable field) { if (field.Content.Length == 0) { return; } SendChatMessage(field.Content); txtField.Text = ""; }
public void SetChatFocus() { IKeyFocusable keyFocusable = NrTSingleton <UIManager> .Instance.FocusObject as IKeyFocusable; if (keyFocusable != null) { TextField y = keyFocusable as TextField; if (this._tfInput != y) { return; } } if (this.HideControl) { return; } if (this.bNotTextKeypadEnter) { this._tfInput.ClearFocus(); } else { this._tfInput.SetFocus(); } this.bNotTextKeypadEnter = !this.bNotTextKeypadEnter; bool flag; if (!this._tfInput.Visible) { AutoSpriteControlBase arg_A3_0 = this._tfInput; flag = true; this._dtInputBG.Visible = flag; flag = flag; this.lbChatType.Visible = flag; arg_A3_0.Visible = flag; } this._tfInput.ColorText = NrTSingleton <CTextParser> .Instance.GetTextColor(MainChatDlg.GetChatColorKey(this.m_SelectTab)); UIPanelManager arg_E5_0 = this._ToolBar; flag = !this.bNotTextKeypadEnter; this._btOption.Visible = flag; arg_E5_0.Visible = flag; if (0 < this._tfInput.Text.Length) { this.OnInputText(null); } }
private void OnInputText(IKeyFocusable obj) { Batch_Chat_DLG batch_Chat_DLG = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BATCH_CAHT_DLG) as Batch_Chat_DLG; if (batch_Chat_DLG.GetChatType() == CHAT_TYPE.GUILD) { string chatNameStr = ChatManager.GetChatNameStr(NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1).GetCharName(), NrTSingleton <NkCharManager> .Instance.GetMyCharInfo().ColosseumGrade, true); NrTSingleton <ChatManager> .Instance.SendMessage(CHAT_TYPE.GUILD, this.tf_chat.Text, false, null, short.Parse(NrTSingleton <WhisperManager> .Instance.ChatColor), this.GetLeaderPersonID(), 0); batch_Chat_DLG.PushMsg(chatNameStr, this.tf_chat.Text, CHAT_TYPE.GUILD); } else if (this.IsMythRaid()) { NrTSingleton <ChatManager> .Instance.SendMessage(CHAT_TYPE.MYTHRAID, this.tf_chat.Text, false, null, short.Parse(NrTSingleton <WhisperManager> .Instance.ChatColor), this.GetLeaderPersonID(), 0); } else { NrTSingleton <ChatManager> .Instance.SendMessage(CHAT_TYPE.BABELPARTY, this.tf_chat.Text, false, null, short.Parse(NrTSingleton <WhisperManager> .Instance.ChatColor), this.GetLeaderPersonID(), 0); } this.tf_chat.ClearText(); }
private void OnInputText(IKeyFocusable obj) { if (this._tfInput.Text.Length <= 0) { this._tfInput.ClearText(); this.bNotTextKeypadEnter = true; return; } if (!NrTSingleton <ChatManager> .Instance.ProcessClientCommand(this._tfInput.Text, ref this._clChat)) { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); NrTSingleton <ChatManager> .Instance.SendMessage(this.m_SelectTab, this._tfInput.Text, this.useItemLinkText, this.linkItem, 0, 0L, 0); NrTSingleton <ChatManager> .Instance.MakeChatText(this, this.m_SelectTab, myCharInfo.ColosseumGrade, this._tfInput.Text, this.linkItem); } this._tfInput.ClearText(); this._tfInput.SetFocus(); this.useItemLinkText = false; this.bIsSetLinkItem = false; this.linkItem = null; }
private void OnCommit( IKeyFocusable field) { textField.spriteText.transform.localPosition = new Vector3( 0.0f, 0.0f, -0.2f); textField.Text = m_strDefaultText; }
private void OnCommitName( IKeyFocusable control) { if( 0 >= editName.Text.Length) tempMsg.gameObject.SetActiveRecursively( true); }
private void OnFocusText2(IKeyFocusable obj) { this.m_lbGuildNoticeDefault.Visible = false; }
private void OnFocusText(IKeyFocusable obj) { this.m_lbGuildMessageDefault.Visible = false; }
private void OnInputText(IKeyFocusable obj) { }
private void OnFocusText(IKeyFocusable obj) { this._Default.Visible = false; }
private void OnInputText(IKeyFocusable obj) { this.CheckCharName(); }