Show Response Menu during typewriter effect?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Internet Person
Posts: 3
Joined: Sat Apr 04, 2020 4:16 pm

Show Response Menu during typewriter effect?

Post 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.
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

Re: Show Response Menu during typewriter effect?

Post 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.
Post Reply