Compromise between Prepend Name and Add Speaker Name

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
BWLGeorge
Posts: 41
Joined: Sun Jun 19, 2022 10:10 pm

Compromise between Prepend Name and Add Speaker Name

Post by BWLGeorge »

Howdy! I'm trying to get it so that conversations will show the speaker's name in specifically colored text before the dialogue, but I have many side NPCs who don't have specific colors to them, and so would like to rely on the "Add Speaker Name" function for them, while using the Dialogue Actor's "Prepend Name" function for those few characters who do have unique colors. Problem is that obviously using both means that characters with colors show both their name in a specific color and then their name in the default color, and then the dialogue text (e.g. Dave: Dave: Hello). Any way to find a compromise between these two options or do I just have to go through and add dialogue actors to everything?
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Compromise between Prepend Name and Add Speaker Name

Post by Tony Li »

Hi,

In this case, don't use the Dialogue Actor's Set Subtitle Color > Apply To Prepended Actor Name. Instead, set the actor's Display Name, and use rich text codes, such as:
  • Name: "Green Knight"
  • Display Name: "<color=green>The Green Knight</color>"
and rely on the StandardUISubtitlePanel's Add Speaker Name.
BWLGeorge
Posts: 41
Joined: Sun Jun 19, 2022 10:10 pm

Re: Compromise between Prepend Name and Add Speaker Name

Post by BWLGeorge »

Awesome, worked like a charm, thanks so much!
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Compromise between Prepend Name and Add Speaker Name

Post by Tony Li »

Glad to help!
Post Reply