Typewriter effect not working
Posted: Thu Feb 01, 2024 9:30 pm
Hi there! I'm running into an issue with the typewriter effect- it turns the text invisible but it doesn't unhide the characters at all like it should. Here's a video of my issue:
Sometimes the effect does work, and sometimes it doesn't- I have a feeling it's related to this code I have:
I realize I'm not using textline or the sms ui that are available, but I've found another approach I prefer, and I'm hoping it's possible to switch between these subtitle settings without causing any other issues, like I suspect it is causing with this typewriter effect.
Any insight is much appreciated, and thank you so much for all your hard work and support for this system <3
Sometimes the effect does work, and sometimes it doesn't- I have a feeling it's related to this code I have:
Code: Select all
private void PrepTxtConvo()
{
DialogueManager.displaySettings.conversationOverrideSettings.skipPCSubtitleAfterResponseMenu = true;
DialogueManager.displaySettings.conversationOverrideSettings.showPCSubtitlesDuringLine = false;
DialogueManager.displaySettings.conversationOverrideSettings.showNPCSubtitlesDuringLine = false;
DialogueManager.displaySettings.subtitleSettings.skipPCSubtitleAfterResponseMenu = true;
DialogueManager.displaySettings.subtitleSettings.showPCSubtitlesDuringLine = false;
DialogueManager.displaySettings.subtitleSettings.showNPCSubtitlesDuringLine = false;
DialogueManager.SetDialoguePanel(false, true);
phoneResponsePanel.gameObject.SetActive(true);
phoneResponsePanelCanvas.enabled = true;
DialogueManager.standardDialogueUI.ForceOverrideMenuPanel(phoneResponsePanel);
DialogueManager.displaySettings.subtitleSettings.continueButton = DisplaySettings.SubtitleSettings.ContinueButtonMode.Always;
}
void OnConversationStart(Transform actor)
{
string convoName = DialogueManager.LastConversationStarted;
if (IsTxtConvo(convoName))
{
PrepTxtConvo();
}
else
{
PrepSpokenConvo();
}
}
private void PrepSpokenConvo()
{
DialogueManager.displaySettings.conversationOverrideSettings.skipPCSubtitleAfterResponseMenu = false;
DialogueManager.displaySettings.conversationOverrideSettings.showPCSubtitlesDuringLine = true;
DialogueManager.displaySettings.conversationOverrideSettings.showNPCSubtitlesDuringLine = true;
DialogueManager.displaySettings.subtitleSettings.skipPCSubtitleAfterResponseMenu = false;
DialogueManager.displaySettings.subtitleSettings.showPCSubtitlesDuringLine = true;
DialogueManager.displaySettings.subtitleSettings.showNPCSubtitlesDuringLine = true;
DialogueManager.SetDialoguePanel(true, true);
responsePanel = GameObject.FindObjectOfType<MainCharacter>().gameObject.GetComponentInChildren<StandardUIMenuPanel>();
DialogueManager.standardDialogueUI.ForceOverrideMenuPanel(responsePanel);
DialogueManager.displaySettings.subtitleSettings.continueButton = DisplaySettings.SubtitleSettings.ContinueButtonMode.Always;
}
Any insight is much appreciated, and thank you so much for all your hard work and support for this system <3