<align> tags don't seem to work with TMP typewriter effect

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
xavibell
Posts: 10
Joined: Mon Jul 31, 2023 8:00 pm

<align> tags don't seem to work with TMP typewriter effect

Post by xavibell »

As the title says, the typewriter effect breaks whenever a subtitle has the <align> tag in it.

For some context, I'm using the scrolling dialogue UI, so all the text accumulates in a single text box. In OnConversationLine() I'm checking the name of the speaker and adding <align> tags. The player's responses would always align to the right, while any NPC dialogue would be aligned left.

The typewriter effect works at the very beginning of the conversation, but as you progress further it seemingly becomes misaligned with what's being shown. It might start the typewriter effect in the very middle of a sentence, or simply display the whole paragraph instantly. If I remove those <align> tags, everything works fine, so I'm assuming they're the culprit.

Any help appreciated.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: <align> tags don't seem to work with TMP typewriter effect

Post by Tony Li »

Hi,

Please use this patch:

DS_TMProPatch_2024-09-03.unitypackage

It adds handling for <align="alignment"> where before the typewriter only handled <align=alignment> without quotes. This fix is in the dev branch for release in v2.2.48.

If you notice any issues, please let me know what <align> tags you're using.
User avatar
xavibell
Posts: 10
Joined: Mon Jul 31, 2023 8:00 pm

Re: <align> tags don't seem to work with TMP typewriter effect

Post by xavibell »

That fixed it. Thanks!
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: <align> tags don't seem to work with TMP typewriter effect

Post by Tony Li »

Glad to help! Thanks for letting me know about the issue!
Post Reply