Page 1 of 1

Recommended approach to choose between different response menus?

Posted: Fri Nov 24, 2023 6:36 am
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

Re: Recommended approach to choose between different response menus?

Posted: Fri Nov 24, 2023 11:43 am
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)

Re: Recommended approach to choose between different response menus?

Posted: Fri Nov 24, 2023 11:59 am
by Swing Wren
Yes that works thanks!

Re: Recommended approach to choose between different response menus?

Posted: Fri Nov 24, 2023 12:04 pm
by Tony Li
Glad to help!