Page 1 of 1

Hide and show dialogue box between each entries

Posted: Thu Dec 10, 2020 11:01 am
by alex89
Hello!

I'm implementing my own UI in onConversationLine in order to setup the position of the dialogue box (like final fantasy 9, for example).

What I'm trying to achieve is to have the dialogue box play the dismiss animation every time it completes (via continue button or programmatically). So the next dialogue entry would play the show animation again.

The way I'm implementing this right now is to have a node between each of the actual lines, that is responsible to close the speech bubble.

I was wondering if there was a way to achieve this without the need to create an entry between each conversation line (happy to go down the script path if needed).

Another related question, is that currently the show/hide transitions that I've added should only change the scale of the dialogue box from 0 to 1 and vice versa. However, when the dialogue shows up, I feel like there is a fade in happening at the same time.

I was wondering if there is a way to control that as well? Could it be because the canvas alpha is fading in?

Any help would be much appreciated! :)

Re: Hide and show dialogue box between each entries

Posted: Thu Dec 10, 2020 2:28 pm
by Tony Li
Hi,

Yes. Don't use OnConversationLine. Make your custom UI code implement the IDialogueUI interface.

Or don't write any code, and use the Standard Dialogue UI system. Set Visibility to Only During Content, and tick Wait For Close so it closes between each node.

Re: Hide and show dialogue box between each entries

Posted: Thu Dec 10, 2020 5:58 pm
by alex89
Thanks a lot Tony, appreciate the quick reply! This should solve it :)

Take care

Re: Hide and show dialogue box between each entries

Posted: Thu Dec 10, 2020 6:27 pm
by Tony Li
Glad to help! Wait to Close was added in 2.2.14, so update to the latest version if you haven't already.

Re: Hide and show dialogue box between each entries

Posted: Fri Dec 11, 2020 9:31 pm
by alex89
Thanks! Will do :)