Page 1 of 1

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

Posted: Mon Sep 02, 2024 11:21 pm
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.

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

Posted: Tue Sep 03, 2024 9:01 am
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.

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

Posted: Tue Sep 03, 2024 7:37 pm
by xavibell
That fixed it. Thanks!

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

Posted: Tue Sep 03, 2024 8:12 pm
by Tony Li
Glad to help! Thanks for letting me know about the issue!