Exemplo n.º 1
0
 private void OnInputText(IKeyFocusable obj)
 {
     if (this.m_FeedData != null)
     {
         this.m_FeedData.User_Message = this.m_taMessage.Text;
     }
 }
Exemplo n.º 2
0
 private void OnLostInputText(IKeyFocusable obj)
 {
     if (this.bNotTextKeypadEnter && this.IsChatFocused())
     {
         this.SetChatFocus();
     }
 }
Exemplo n.º 3
0
    // 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 = "";
    }
Exemplo n.º 4
0
    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();
    }
Exemplo n.º 6
0
    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;
    }
Exemplo n.º 7
0
	private void OnCommit( IKeyFocusable field)
	{
		textField.spriteText.transform.localPosition = new Vector3( 0.0f, 0.0f, -0.2f);
		textField.Text = m_strDefaultText;
	}
Exemplo n.º 8
0
	private void OnCommitName( IKeyFocusable control)
	{
		if( 0 >= editName.Text.Length)
			tempMsg.gameObject.SetActiveRecursively( true);
	}
Exemplo n.º 9
0
 private void OnFocusText2(IKeyFocusable obj)
 {
     this.m_lbGuildNoticeDefault.Visible = false;
 }
Exemplo n.º 10
0
 private void OnFocusText(IKeyFocusable obj)
 {
     this.m_lbGuildMessageDefault.Visible = false;
 }
Exemplo n.º 11
0
 private void OnInputText(IKeyFocusable obj)
 {
 }
Exemplo n.º 12
0
 private void OnFocusText(IKeyFocusable obj)
 {
     this._Default.Visible = false;
 }
Exemplo n.º 13
0
 private void OnInputText(IKeyFocusable obj)
 {
     this.CheckCharName();
 }