Page 1 of 2

Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Wed Oct 07, 2015 12:05 pm
by nishant
Hi ,
This is what I want
1. Cancel button should skip the current dialogue and move to the next one .
2. If Cancel button is pressed when response options are shown , then it should cancel the whole conversation

I have managed to do this by setting both Cancel button and Cancel conversation button to 1 key. However I noticed if I keep cancel button pressed , it does skip the current dialogue (as expected) and wont skip any other dialogues (like it should) , but if response options pop up , it simply selects the first option and skips to next link connected to that option. Also note that I am using auto-focus so that first option will be highlighted by default. Is this a bug ?? if not how can I avoid this ??

You guys have really been helpful over past few weeks and I really appreciate that
:)
Thanks
Nishant

Re: Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Wed Oct 07, 2015 12:16 pm
by Tony Li
Hi,

I'll look into this and get back to you today.

Re: Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Thu Oct 08, 2015 8:28 am
by Tony Li
I will look into reproducing this issue and, if necessary, putting a fix in the upcoming 1.5.6 release.

Re: Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Thu Oct 08, 2015 9:14 pm
by Tony Li
Hi,

I sent you a PM. I'm hoping you can please provide some additional information.

Thanks!

Re: Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Wed Oct 21, 2015 3:13 pm
by nishant
Hi ,
I think I was able to reproduce the issue after at change in dialogue system . We decided to add huge delays to every dialogue and give player option to skip dialogue cause we were getting complains that dialogues end too fast . So I did that , added a button to skip current dialogue and go to next and everything works fine . Problems comes when I skip a dialogue which is followed by responses. In that scenario , it doesnt show responses and selects the first response by default . I should also note that I am using Mouse 0 to skip dialogues . I guess this bug arises only when youskip dialogues using mouse 0

Thanks.

Re: Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Wed Oct 21, 2015 3:50 pm
by Tony Li
Hi Nishant,

What about using the built-in Continue Button feature?

To see it in action:
  1. Open the scene Assets/Dialogue System/Examples/Unity UI Examples/Generic UI Example Scene.
  2. Inspect the Dialogue Manager, and set Display Settings > Subtitle Settings > Continue Button to Always.
  3. While you're at it, in your own scene tick Display Settings > Input Settings > Always Force Response Menu.
  4. Play. Talk to Private Hart. Each line will wait for you to click Continue.
Will that work for your needs?

BTW, step 3 above (Always Force Response Menu) ensures that the conversation always shows a response menu when it's the player's turn to speak. If this is UNticked and the player only has one choice, the conversation will automatically select that choice without showing the response menu.

Re: Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Thu Oct 22, 2015 3:13 pm
by nishant
Hi ,
That doesnt seem to fix the issue . Another bug that occurs after setting Continue Button to always is that even empty dialogues "Those with None() sequences " are visible . Currently I am forced to use Escape key to continue dialogues as this issue occurs only when Mouse 0 key is set to cancel dialogue

Thanks.
Nishant

Re: Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Thu Oct 22, 2015 3:49 pm
by Tony Li
Hi Nishant,

These aren't bugs; they're different behaviors. The Dialogue System supports a lot of different behaviors for different customer needs. We just need to set up the desired behavior that you're looking for. Later today, I'll post an example scene here that implements the behavior that I think you're looking for.

Tony

Re: Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Thu Oct 22, 2015 9:47 pm
by Tony Li
Hi Nishant,

Please try this example scene: TestOptionalContinue_2015-10-22.unitypackage

It imports into a folder Test/Test Optional Continue.

Here's how I set it up:
  • Started with a copy of the Generic UI example scene.
  • On the Dialogue Manager, set Subtitle Chars Per Second to 5, Min Subtitle Seconds to 10.
  • Set the Cancel and Cancel Conversation buttons to Fire1 (left mouse button).
  • In the dialogue UI, I unassigned the NPC Subtitle > Continue Button field but left the button GameObject active.
  • Ticked Auto Focus.
  • Added a "None()" node. In the database, see the "EMPTY NODE" in Private Hart's conversation. Instead of "None()", I used this sequence:

    Code: Select all

    SendMessage(OnContinue,,Dialogue Manager)
    This makes it immediately continue to the next node. I didn't actually have to do this. Since I left the Dialogue Manager's Continue Button mode set to Never, you can still use "None()". I just added this as an example in case you decide to change the Continue Button mode.

Re: Holding down the cancel button while response menu is about to popup will automatically select the first option

Posted: Wed Oct 28, 2015 12:00 pm
by nishant
Hey Tony,
Yes your example helped a lot .

Thanks :) .
Nishant