Chat/Inputfield

Support for MFPS 2.0 (for verified users)
Forum rules
To request support/assistance for MFPS, you first have to verify your purchase by sending your purchase invoice number to Lovatto in a PM.
Post Reply
User avatar
Gallery Whitte
Contributor
Contributor
Posts: 22
Joined: Fri Sep 01, 2017 5:26 pm

Hi

I d like to change the script
to make the Chat-Inputfield
not to desapear
after the User hits "Return".

At the end the Inputfield should always be visible.

I tried to modify the bl_ChatRoom.cs:
by disabling
" //chatInputField.DeactivateInputField();"

but this does not work.

My c#-skills end here,
so I would be very thankful for any help,
as the multiplayer-chat is a main feature for my project.
tx

Code: Select all

public void OnSubmit()
    {
        bl_GameData.Instance.isChating = !bl_GameData.Instance.isChating;
        chatInputField.gameObject.SetActive(bl_GameData.Instance.isChating);

        if (bl_GameData.Instance.isChating)
        {
            chatInputField.text = string.Empty;
            chatInputField.ActivateInputField();
        }
        else
        {
            SetChat(chatInputField.text);
            //chatInputField.DeactivateInputField();
        }
    }
    
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

What version of MFPS are you using?
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
Gallery Whitte
Contributor
Contributor
Posts: 22
Joined: Fri Sep 01, 2017 5:26 pm

MFPS 2.0
Vers 1.8.2
Post Reply