Marking Dialogue Nodes as visited

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: Marking Dialogue Nodes as visited

Post by Tony Li »

Yes. You can set it in the Dialogue Editor's Database section, under Emphasis Settings.
Itilos
Posts: 21
Joined: Thu Oct 20, 2022 12:03 am

Re: Marking Dialogue Nodes as visited

Post by Itilos »

Awesome! That works well.

Is there a way to get the Autonumbers to have the same emphasis? It looks like the numbers themselves will still be the original color (of an un-visited node).
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: Marking Dialogue Nodes as visited

Post by Tony Li »

Hi,

The [em#] tag for old responses gets applied first. Then the autonumber is prepended if the feature is enabled, which means it gets prepended outside of the [em#] tag.

If you want to change that behavior, you could make a subclass of StandardUIMenuPanel. Override the SetResponseButton() method to call base.SetResponseButton() and then extract the first "<color=...>" tag from the button.text and move it to the very beginning of button.text.

Then use your subclass in place of the original StandardUIMenuPanel in your dialogue UI. (See here.)

If you have questions about making the subclass, let me know.
Itilos
Posts: 21
Joined: Thu Oct 20, 2022 12:03 am

Re: Marking Dialogue Nodes as visited

Post by Itilos »

That worked! Thanks - appreciate the help!
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: Marking Dialogue Nodes as visited

Post by Tony Li »

Glad to help!
Post Reply