Response Menu is not focused

Announcements, support questions, and discussion for the Dialogue System.
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

This is almost certainly the issue. What DS version are you using? Is the response menu using one of the animator controllers that ship with the Dialogue System, or a custom one?
DS ver. 2.2.46.1
Unity ver. 2020.3.38f1
Response menu use "Canvas Group Animator Controller" from Dialogue System original files without any modifications
User avatar
Tony Li
Posts: 23256
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response Menu is not focused

Post by Tony Li »

Hi,

Can you back up your project and then update to DS 2.2.50.1? Then check if the problem is still present. This way we'll be on the same page and not potentially chasing down an issue that's already fixed.
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

Hi Tony

After update no changes, still after first response menu other responsemenu is shown for half second or less and it go to next node after "response button node". Here is a snapshot of animator when response menu should show:
Image

And with Basic Standard Dialogue UI
After setting up Basic Standard Dialogue UI Response menu is showing but:
- I can't click action button to finish typewriter effect I must wait for typewriter effect to finish on it's own
- This is happening only on nodes before response nodes (green node on the screenshot)
- On other nodes action button finishes typewriter effect without any issue (one click finish typewriter effect, second click go to next node)
Attachments
dialogue_animator.png
dialogue_animator.png (453.54 KiB) Viewed 5656 times
User avatar
Tony Li
Posts: 23256
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response Menu is not focused

Post by Tony Li »

Hi,

The quick "solution" would be to remove to replace the animator controller. Of course this will remove the fade animation. But if you don't need the fade animation, it's a way to get it working quickly.

If you do need the fade animation, can you please send a reproduction project to tony (at) pixelcrushers.com?
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

Hi Tony

We looked in to the code of our own and i have new info:
- This is not problem with animator after cuting the Hide animation it's still go to next node after response node.
- We don't use standart "StandardUIContinueButtonFastForward" in our Dialogue Panels, we progress our dialogues via code using

Code: Select all

GetComponentInParent<AbstractDialogueUI>().OnContinue();
- On the start of the "respones menu" in one frame both OnContinue and Submit is called
- Also when we debug it, response menu response button was focused for one frame
Attachments
DS response button.png
DS response button.png (38.94 KiB) Viewed 5509 times
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

Hi Tony

I can't send a reproduction project. all info i could give you are in last post. Is there a method or some "If" that we can use?
User avatar
Tony Li
Posts: 23256
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response Menu is not focused

Post by Tony Li »

Hi,

Can you make a simple example that demonstrates the same issue?

Is it possible that your code is advancing the conversation too far?

You write that the conversation goes to the node after the response node. Does this mean the conversation is moving past the response menu? If so, investigate why it's not stopping at the response menu.
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

Hi Tony
Can you make a simple example that demonstrates the same issue?

Is it possible that your code is advancing the conversation too far?

You write that the conversation goes to the node after the response node. Does this mean the conversation is moving past the response menu?
Yes, conversation is moving past the response menu, it looks like this:
- Start Game
- Start Conversation
- Node 1: One click -> to finish type writer, Second click -> shows response menu
- Response menu: Click on Response 2 -> It's going to next node, Node 3
- Node 3: One click -> to finish type writer, Second click -> go to Node 5
- Node 5: One click -> to finish type writer, Second click -> shows response for split second and go to Node 6
- Response Menu: is skiped via problem
- Node 6: One click -> to finish type writer, Second click -> go to END
- Start Conversation
- Node 1: One click -> to finish type writer, Second click -> shows response for split second and go to Node 2
- Response Menu: is skiped via problem
- Node 2: One click -> to finish type writer, Second click -> go to Node 5
- Node 5: One click -> to finish type writer, Second click -> shows response for split second and go to Node 6
- Response Menu: is skiped via problem
- Node 6: One click -> to finish type writer, Second click -> go to END


We found the cause of the problem, it was my configuration of Standard Dialogue UI.
Response Menu wasn't under MainPanel. That's why when Input was blocked for Main Panel the Input on Response menu wasn't

Solution to my problem
- I created new MainUIPanel object
- I add Canvas Renderer, Canvas Group, and UI Panel components to new MainUIPanel
- Put all my dialogue box objects under new MainUIPanel
- Setup new MainUIPanel as Main Panel in Standard Dialogue UI
User avatar
Tony Li
Posts: 23256
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response Menu is not focused

Post by Tony Li »

Hi,

Great! All working now?

Also, as a side note: If your players are clicking too fast, you can set Block Input Durations on subtitle panels and menu panels.
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

Hi Tony

I have next question what I need to do if I want Typer writer effect in textbox that is shown with responses buttons. Looking on screenshot it wil be a "Choose UI" node
Attachments
Dialogue_Question.png
Dialogue_Question.png (20.07 KiB) Viewed 3782 times
Post Reply