Parsing text with markup

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hipsterdufus
Posts: 95
Joined: Thu Aug 12, 2021 6:39 pm

Parsing text with markup

Post by hipsterdufus »

Hi, I'm making my own quest UI and trying to use the dialogue quest data as the backend. When I get a quest entry that has some markup it just gives me the text without doing any markup parsing. Is there a way to use the dialogue system to substitute the markup text for me? Thank you.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Parsing text with markup

Post by Tony Li »

Hi,

Run the text through FormattedText.ParseCode().
hipsterdufus
Posts: 95
Joined: Thu Aug 12, 2021 6:39 pm

Re: Parsing text with markup

Post by hipsterdufus »

Perfect, thanks!
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Parsing text with markup

Post by Tony Li »

Happy to help!
Post Reply