As always WOW... such an amazing answer!
Thanks for the info about new typewriter... but as you guessed, I only keep my dialogues in one window (no scrolling)... so that wouldn't be useful...
I also plan "for now at least" to only use my 1 Dialogue UI (so only 1 typewriter as well) but the info is good to know if I ever decide to change that.
When I analyse your code I realize how "noob" I still am... not sure if I wrote it before, but I am a designer and video editor first... I only started learning C# less than a year ago... so there is still a lot of the syntax I dont quite understand...
this being reference to that line here :
"return (typewriter != null) ? typewriter.charactersPerSecond : 1;"
I never used a ? or : in any of my programming yet... and i only use "return;" when I need to exit a method

also never used method other than void... so there is a LOT of room for improvement on my side!
Here is my current final slider script :
Code: Select all
public void SliderTextSpeed (float TSValue)
{
DialogueManager.DisplaySettings.subtitleSettings.subtitleCharsPerSecond = TSValue;
dialogueTypeWriter.charactersPerSecond = TSValue;
textAutoSpeed.text = (TSValue.ToString("N0") + " chars per second");
}
If this looks "alright" then I guess I'm done with that
Here is another slider I made for a "Wait Delay When In Auto Mode" based on what you gave me last week :
Code: Select all
public void SliderWaitTime (float WTValue)
{
DialogueLua.SetVariable("finalDelay", WTValue);
textWaitTime.text = (WTValue.ToString("N0") + " seconds");
}
However I'd like to know how to access that "finalDelay" variable (more precisely, how to GET its value) so I can set the slider.value manually to finalDelay value when the player enters the option menu the first time.