Hi,
If you actually do want to hide the dialogue UI during the beer recommendation menu, here are two suggestions:
1. You can run OpenBeerRecommendation as a
custom sequencer command instead of a registered Lua function. The Sequence might look like this:
Code: Select all
SetDialoguePanel(false);
OpenBeerRecommendation(Siegfried)->Message(Done);
SetDialoguePanel(true)@Message(Done)
- The first line hides the dialogue UI.
- The second line runs the sequencer command. It assumes that the sequencer command stays running until the beer recommendation menu is done. Then it sends the sequencer message "Done".
- The third line waits until something sends the sequencer message "Done". Then it shows the dialogue UI, at which point the conversation continues.
If you're using a continue button, add a fourth line:
This will also automatically continue at the same time that it makes the dialogue UI reappear.
2. Alternatively, you can continue using OpenBeerRecommendation as a Lua function. Change the Sequence to this:
Code: Select all
SetDialoguePanel(false);
SetDialoguePanel(true)@Message(Done)
When you close the beer recommendation menu, run this C# code
---
If you want to keep the dialogue UI visible but just hide the continue button, consider one of these suggestions (which are similar to the ones above):
1. You can run OpenBeerRecommendation as a custom sequencer command instead of a registered Lua function. The Sequence might look like this:
Code: Select all
SetContinueMode(false);
OpenBeerRecommendation(Siegfried)->Message(Done);
SetContinueMode(original)@Message(Done);
Continue()@Message(Done)
- The first line hides the continue button.
- The second line runs the sequencer command. It assumes that the sequencer command stays running until the beer recommendation menu is done. Then it sends the sequencer message "Done".
- The third & fourth lines wait until something sends the sequencer message "Done". Then it shows the continue button and continues, at which point the conversation continues.
2. Alternatively, you can continue using OpenBeerRecommendation as a Lua function. Change the Sequence to this:
Code: Select all
SetContinueMode(false);
SetContinueMode(original)@Message(Done);
Continue()@Message(Done)
When you close the beer recommendation menu, run this C# code
---
One last tip: You may need to add an empty node between the beer menu node and the ones that check the player's selection variable. This is because conversations need to
evaluate conditions one extra level ahead to accommodate certain continue button modes. Leave the empty node's text blank, and set the Sequence to: Continue()