Page 1 of 1

Parsing text with markup

Posted: Sat Jan 15, 2022 12:25 pm
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.

Re: Parsing text with markup

Posted: Sat Jan 15, 2022 12:54 pm
by Tony Li
Hi,

Run the text through FormattedText.ParseCode().

Re: Parsing text with markup

Posted: Sun Jan 16, 2022 12:38 am
by hipsterdufus
Perfect, thanks!

Re: Parsing text with markup

Posted: Sun Jan 16, 2022 9:20 am
by Tony Li
Happy to help!