Dropdown UI in Dialogue Panel

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
bhavinsavajiyani
Posts: 42
Joined: Sun Jul 26, 2020 3:51 pm

Dropdown UI in Dialogue Panel

Post 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.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dropdown UI in Dialogue Panel

Post 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.
bhavinsavajiyani
Posts: 42
Joined: Sun Jul 26, 2020 3:51 pm

Re: Dropdown UI in Dialogue Panel

Post by bhavinsavajiyani »

Hello!

Thank you for helping out.
I did what you suggested above. I was now able to run the scene.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dropdown UI in Dialogue Panel

Post by Tony Li »

Glad to help!
Post Reply