Page 1 of 1

Menu Framework - Hide Dialogue UI

Posted: Mon Mar 07, 2022 12:20 am
by GreenConure
Hello!

I've been trying to hide the Dialogue and Quest Tracker UI if the player returns to the Title Menu (I'm currently using the Menu Framework). What currently happens is if the Player returns to the menu during a conversation, the Dialogue UI and actor portraits are still visible in the Menu screen(Same with Quest Tracker UI). I tried having it done via Unity Events where their Dialogue Panel UI is closed when players return to the Starting Menu, but even if I set them to open/activate again upon loading to the next scene, the UI remains closed, and triggering conversations do not activate the Dialogue UI or the Quest tracker again. The same happens if I use SetEnabled with the Dialogue/Quest Canvases. Would you have a suggestion on how to go about this?

Thank you so much for all of your help!

Re: Menu Framework - Hide Dialogue UI

Posted: Mon Mar 07, 2022 8:34 am
by Tony Li
Hi,

You can configure the TitleMenuPanel's OnOpen() event to deactivate the Dialogue Manager's Canvas, and configure OnClose() to enable it.

You'll also want to make sure any active conversation is stopped when you return to the title menu. You can do this by configuring the TitleMenuPanel's OnOpen() to call the Dialogue Manager's DialogueSystemController.StopConversation.

Re: Menu Framework - Hide Dialogue UI

Posted: Mon Mar 07, 2022 11:19 am
by GreenConure
This worked perfectly! Thank you so much!!

Re: Menu Framework - Hide Dialogue UI

Posted: Mon Mar 07, 2022 12:56 pm
by Tony Li
Glad to help!