Page 1 of 2
Block Input Duration not having desired effect
Posted: Fri Nov 13, 2020 4:24 pm
by alexlol
Hello! I'm testing a trial version of this software and am very impressed with tutorial videos, the forum support and the software itself. I'm quite inexperienced and am am running into a couple of issued I'd like some help with.
My project is set up using the Bubble template in order to get dialogue and response text to appear above character heads in world space. Currently, I'm running into two small issues.
1) The player's dialogue, which appears in the "Bubble Template Standard UI Menu Panel". Whilst the characters are being typed out, I'd like my interaction button to either have no effect or to speed up the typing. I've added a delay (10 seconds just to be safe) using the 'Block Input Duration' field, but this seems to have no effect.
2) When my character has multiple lines of dialogue in a row, upon hitting the submit button the next line immediately appears in the current response panel as it fades out, visible for a short time as the next panel begins to fade in.
I've tried to search for these issues in the forum already as I'm aware the support here is very impressive, so apologies if these questions have been answered already and I've just been unable to find them. Any help would be greatly appreciated, thank you!
Re: Block Input Duration not having desired effect
Posted: Fri Nov 13, 2020 4:40 pm
by Tony Li
Hi,
Thanks for checking out the Dialogue System!
alexlol wrote: ↑Fri Nov 13, 2020 4:24 pm1) The player's dialogue, which appears in the "Bubble Template Standard UI Menu Panel". Whilst the characters are being typed out, I'd like my interaction button to either have no effect or to speed up the typing. I've added a delay (10 seconds just to be safe) using the 'Block Input Duration' field, but this seems to have no effect.
Which characters are being typed out -- the player's menu options, or the NPC's subtitle text? (I'm assuming the NPC's subtitle text is in the dialogue entry node that precedes the player's menu option nodes in your conversation). The NPC's subtitle text should type out fully before the player's menu is shown at all.
alexlol wrote: ↑Fri Nov 13, 2020 4:24 pm2) When my character has multiple lines of dialogue in a row, upon hitting the submit button the next line immediately appears in the current response panel as it fades out, visible for a short time as the next panel begins to fade in.
Changing the panel's Visibility to Until Superceded may resolve that.
If the player has multiple lines in a row, you may want to also assign a bubble subtitle panel to its Dialogue Actor component. Then inspect the Dialogue Manager and change these settings:
- Subtitle Settings > Show PC Subtitles During Line: Tick
- Input Settings > Always Show Response Menu: UNtick.
When the player only has one option, it will show it in the subtitle bubble. (Change its Visibility to Until Superceded.)
If the player has more than one option, it will show the options in the menu bubble.
Re: Block Input Duration not having desired effect
Posted: Fri Nov 13, 2020 6:43 pm
by alexlol
Thank you so much for the quick response!
Your suggest for problem 2 has worked, thank you! It did bring up a few more issues but I will try and investigate my own solutions before asking more help.
Regarding the first problem - as a result of all player single-option responses being subtitles now, both NPC and Player dialogue are unskippable as they are being animated. However, the behaviour I'm aiming for is:
- The typewriter animation can be sped up with user input (e.g. holding down or pressing 'submit')
- Once the line is complete, the system will only progress to the next line on user input.
Would I need to write a small script to multiply the UI typewriter speed when a key is pressed, or is there built in functionality I haven't seen?
As for the user input to progress to the next line - I've set the Min Subtitle Seconds to a huge number and enabled a Cancel Subtitle Input button, but this seems maybe like a bit of a rough solution and I might be missing a better way of doing it?
Re: Block Input Duration not having desired effect
Posted: Fri Nov 13, 2020 8:08 pm
by Tony Li
Hi,
Use continue buttons. Inspect the Dialogue Manager, and set Subtitle Settings > Continue Button to Optional. (Or Always if you want to force the bubble to stay onscreen until the user clicks the continue button.)
You may need to add a continue button to your subtitle panel and assign it to the StandardUISubtitlePanel component. If you're using the built-in Bubble Template Standard UI Subtitle Panel, it doesn't have a continue button. But the "BubbleSubtitleExample" on the
Dialogue System Extras page has a continue button.
For general information about the typewriter effect speed, see
this post. The bottom of the post has a link to another post containing a script and example scene that speeds up the typewriter effect when you click the continue button.
Re: Block Input Duration not having desired effect
Posted: Sun Nov 15, 2020 3:39 pm
by alexlol
Thanks very much for the advice! Using continue buttons has helped.
I'm still not getting the desired effect from the Block Input Duration field, however - no matter how many seconds I set the field too, I am able to make a selection immediately (potentially skipping over a response if I'm spam-skipping dialogue). Not sure what I'm getting wrong!
Re: Block Input Duration not having desired effect
Posted: Sun Nov 15, 2020 7:44 pm
by Tony Li
Hi,
What kind of input are you using to spam-skip and to select response buttons? Mouse click? EventSystem "Submit" input (e.g., spacebar, joystick button 0)? UI Button Key Trigger component?
Block Input Duration should block all of the input types I just listed.
Double check that your Dialogue Manager's Dialogue UI field is pointing to your customized dialogue UI. More often than I'd like to admit, I'll add a dialogue UI instance to the Dialogue Manager Canvas but forget to assign it to the Dialogue UI field. The Dialogue Manager then continues to instantiate the old prefab that's assigned to the Dialogue UI field, and for a moment I can't figure out why I'm not seeing the changes I've made to the instance.
Re: Block Input Duration not having desired effect
Posted: Mon Nov 16, 2020 4:29 pm
by alexlol
I am using the 'Submit' input, but I may be getting a bit confused with referencing the correct Dialogue UI. I'm pointing the Dialogue Manager to the Basic Standard Dialogue UI, which is childed to the Dialogue Manager's canvas.
However, I am using a Bubble Template Standard UI Menu Panel for my player character, alongside the Dialogue Actor component, and it's here that I'm adjusting the Block Input Duration field (which is having no effect). Is this the correct method?
Re: Block Input Duration not having desired effect
Posted: Mon Nov 16, 2020 7:16 pm
by Tony Li
Got it. In that case, please import this patch:
DS_MenuPanelPatch_2020-11-16.unitypackage
Re: Block Input Duration not having desired effect
Posted: Tue Nov 17, 2020 9:02 am
by alexlol
That's done it, thank you.
Very impressed with the package and the support, I've purchased Dialogue System!
Re: Block Input Duration not having desired effect
Posted: Tue Nov 17, 2020 9:23 am
by Tony Li
Thanks for supporting the Dialogue System!