Recommended approach to choose between different response menus?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Swing Wren
Posts: 31
Joined: Fri Apr 10, 2020 2:30 am

Recommended approach to choose between different response menus?

Post by Swing Wren »

Hi,

Currently we have one response menu that its placed in the middle of the screen, but now we need to use with one with different design when its an important choice for the user.

What would be the recommended approach to choose in a dialogue system block the response menu we want in each case? (we have implemented our own IDialogueUI/IStandardDialogueUI so getting a new parameter in ShowResponses would be enough)

Thanks
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Recommended approach to choose between different response menus?

Post by Tony Li »

Hi,

Use the SetMenuPanel() sequencer command in the preceding dialogue entry node. Here's an example scene:

DS_SetMenuPanelExample_2023-11-24.unitypackage

In the example scene, the dialogue UI has two menu panels (0 and 1). The node before the alternate response menu uses this sequence:

Code: Select all

SetMenuPanel(Player, 1)
The node after the response menu sets it back to the default menu panel with:

Code: Select all

SetMenuPanel(Player, 0)
Swing Wren
Posts: 31
Joined: Fri Apr 10, 2020 2:30 am

Re: Recommended approach to choose between different response menus?

Post by Swing Wren »

Yes that works thanks!
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Recommended approach to choose between different response menus?

Post by Tony Li »

Glad to help!
Post Reply