Page 1 of 1

Dropdown UI in Dialogue Panel

Posted: Sat Oct 24, 2020 7:24 am
by bhavinsavajiyani
Hello Sir!

I have a situation, where I require dropdown with several options, which could be triggered using a command from the conversation itself.
For example, when I use "TextInput command" in the Sequence attribute of Dialogue Entry, it would trigger a specified Text Field UI.
In a similar way, can we implement a Dropdown, where a dropdown command could trigger the specified Dropdown UI?
Also, I need to record the choice selected from that dropdown. Is there any way by which I could that?

I did download "Dropdown Example" form Dialogue System Extras, and also imported it in Unity 2019.4 LTS version. But when I open the Demo Scene, it shows some missing scripts and parsing errors, due to which I'm not able to run the demo scene properly, and therefore I cannot figure out, if that implementation is something that fits to what I'm looking forward to do.

Kind Regards,
Bhavin.

Re: Dropdown UI in Dialogue Panel

Posted: Sat Oct 24, 2020 8:45 am
by Tony Li
Hi,

The dropdown example was made in version 1.x of the Dialogue System. After importing the dropdown example, back up your project. Then run menu item Tools > Pixel Crushers > Dialogue System > Tools > Run 1x to 2x Updater.

Since the example was made in version 1.x, it uses the older UnityUIDialogueUI system instead of StandardDialogueUI. I recommend studying the example to see how it works, and then writing a similar solution yourself for StandardDialogueUI.

Re: Dropdown UI in Dialogue Panel

Posted: Sat Oct 24, 2020 11:53 am
by bhavinsavajiyani
Hello!

Thank you for helping out.
I did what you suggested above. I was now able to run the scene.

Re: Dropdown UI in Dialogue Panel

Posted: Sat Oct 24, 2020 12:44 pm
by Tony Li
Glad to help!