A few problems with Accumulate text

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Avo
Posts: 6
Joined: Sat Mar 10, 2018 5:57 am

A few problems with Accumulate text

Post by Avo »

Hi,

For some reason I am really struggling with building the UI I want. It's basically almost exactly what Disco Elysium does, with the added support of multiple NPC avatars.

I've added a rough mockup of what I am looking for.

It seems like I can either (using the examples) get accumulative text (including the player text) to work, or the multiple NPC and separate player panel, but not both.

Right now my main problem (extending the "VN Template") is to create a panel where the text is accumulated. It seems like the players text is not accumulated, only the NPC's text, even though both are pointing to the same subtitle text.

(I am unsure if it matters here, but I am using TextMeshPro UI components. - which also seems to have a problem of truncating the text when I use the TextMeshPro TypeWriter, but that's a lower priority.)
Attachments
dialogue.jpg
dialogue.jpg (211 KiB) Viewed 353 times
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: A few problems with Accumulate text

Post by Tony Li »

Hi,

Here's an example scene:

DS_MultiNPCScrollingUIExample_2022-02-19.unitypackage

It uses the subclass of StandardUISubtitlePanel provided here. (The subclass script is included in the example package above.)
Avo
Posts: 6
Joined: Sat Mar 10, 2018 5:57 am

Re: A few problems with Accumulate text

Post by Avo »

Aha! Thanks a lot for the quick reply and code Tony. World class service! :)
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: A few problems with Accumulate text

Post by Tony Li »

Glad to help! :-)
Post Reply