Page 1 of 1

Show Response Menu during typewriter effect?

Posted: Wed Jul 07, 2021 1:48 am
by Internet Person
I have a custom conversation UI that mimics a computer interface, and I'm using the typewriter effect to type out the text on the screen and the Response Menu for the navigation system. The problem is that the Response Menu only appears once the NPC subtitle is finished writing out, so you have to wait or click a continue button before navigating.

Essentially, I can't find a way to make it open the next response menu while the text is still being typed out.

Re: Show Response Menu during typewriter effect?

Posted: Wed Jul 07, 2021 8:36 am
by Tony Li
Hi,

Subtitle panels always "clean up" after themselves by stopping the typewriter effect when progressing to the response menu or another subtitle. To override this behavior, replace your subtitle panel's StandardUISubtitlePanel script with this subclass:

CustomStandardUISubtitlePanel.cs

Code: Select all

using PixelCrushers.DialogueSystem;
public class CustomStandardUISubtitlePanel : StandardUISubtitlePanel
{
    public override void FinishSubtitle()
    {
        HideContinueButton();
        // Omits line that stops typewriter.
    }
}
To replace the script in-place, see this post.