Page 1 of 1

Switching between 2 Dialogue UI's in-game

Posted: Fri Mar 15, 2019 11:27 pm
by sleepyBear
Hi,

Is it possible to change the Dialogue UI in-game? I'm trying to do an undertale dialogue UI.

When in town the system will use the JRPG dialogue Template but when inside buildings and especially shops the game transforms into a visual novel like interface so I want the dialogue system to switch to the VN template. I'm currently studying the code of the Dialogue system controller and I'm having a hard time what variables or functions should I edit

Re: Switching between 2 Dialogue UI's in-game

Posted: Sat Mar 16, 2019 8:37 am
by Tony Li
Hi,

Yes, there are a few ways.

You can add an Override Dialogue UI to a conversation participant, and assign a different dialogue UI. When this participant is involved in a conversation, it will use the assigned dialogue UI. Add an Override Display Settings instead of Override Dialogue UI if you want to override more than just the UI. Side note: Another way to override other display settings for a specific conversation is to inspect the conversation's properties by clicking on empty canvas space in the Dialogue Editor. This will show the conversation's properties, where you can click on Override checkboxes to specify what to override.

Or, in code, you can call DialogueManager.UseDialogueUI(x) where x is a dialogue UI GameObject.

Or, in visual scripting such as PlayMaker, you can use the equivalent visual scripting action.