Hi,
You could add some code to the beginning of your overridden Play() method that checks for strings such as "...?" and inserts pause codes, such as "...\.?"
Customize typewriter stop characters?
Re: Customize typewriter stop characters?
Interesting solution, so I manually set the pause codes, and don't use them in the stop codes property. That sounds like it would work! Thanks a lot
Working on SpaceChef - A wacky open world space western, featuring a chef with nothing to loose, after he loses everything.. ;) Follow our work on @BlueGooGames.
Re: Customize typewriter stop characters?
Hey, i noticed control.text was the wrong text to modify. So i changed it to here:
Does this make sense?
Code: Select all
public override void StartTyping(string text, int fromIndex = 0)
{
text = text.Replace("...", "…").Replace("..", "…");
base.StartTyping(text, fromIndex);
}
Working on SpaceChef - A wacky open world space western, featuring a chef with nothing to loose, after he loses everything.. ;) Follow our work on @BlueGooGames.
Re: Customize typewriter stop characters?
Yes, that's correct. When Play() starts, control.text may not be correct. But the text variable that's passed to Play() is correct.