OnContinue once makes all subtitles play superfast
Re: OnContinue once makes all subtitles play superfast
Great, thanks I'll try that!
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: OnContinue once makes all subtitles play superfast
Thanks, but the problem here is that I need to run the custom close function of the current open subtitle, which has dotween.
Is there any way to get a reference to the current subtitle, or should I use events to broadcast to all subtitles?
Is there any way to get a reference to the current subtitle, or should I use events to broadcast to all subtitles?
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: OnContinue once makes all subtitles play superfast
Yes:
Code: Select all
Subtitle currentSubtitle = DialogueManager.currentConversationState.subtitle;
StandardDialogueUI ui = DialogueManager.dialogueUI as StandardDialogueUI;
DialogueActor currentDialogueActor;
StandardUISubtitlePanel currentPanel = ui.conversationUIElements.standardSubtitleControls.GetPanel(currentSubtitle, out currentDialogueActor);
Debug.Log("Current subtitle panel is: " + currentPanel);
Re: OnContinue once makes all subtitles play superfast
Brilliant, it worked perfectly! Sorry if I asked this question before, when I read the code I recognize it..
Now i just need to figure out how to show/hide the full screen skip button, but I think I have everything i need to do that. Thanks again Tony, you're the best!
Now i just need to figure out how to show/hide the full screen skip button, but I think I have everything i need to do that. Thanks again Tony, you're the best!
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: OnContinue once makes all subtitles play superfast
Glad to help!
Can you show/hide it using the dialogue UI's Dialogue Panel > OnOpen() and OnClose() events?
If not, perhaps you can use the OnConversationStart and OnConversationEnd script messages or equivalent UnityEvents on the Dialogue System Events component.
Can you show/hide it using the dialogue UI's Dialogue Panel > OnOpen() and OnClose() events?
If not, perhaps you can use the OnConversationStart and OnConversationEnd script messages or equivalent UnityEvents on the Dialogue System Events component.
Re: OnContinue once makes all subtitles play superfast
I made it using a combination of those, and now it works great! Thanks again
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: OnContinue once makes all subtitles play superfast
Happy to help!