Page 1 of 1
Using continue button with Bark UI
Posted: Fri Jun 23, 2023 12:05 pm
by ds2497
Hi there,
I'm using Bark UI for character dialogue, and I'm wondering what the workflow would be for the Continue Button. Since the Continue Button is not inside the Dialogue UI, I'm unsure about the correct workflow.
Alternatively, I would like to know how to check if the current line is the last line of the dialogue. Currently, I'm maintaining the Continue Button with Dialogue System Events, and everything works fine. However, I am unable to skip the Continue Button for the last line of a dialogue. If I can detect the last line, I can use Dialogue System Events with a custom method to handle the Continue Button.
Re: Using continue button with Bark UI
Posted: Fri Jun 23, 2023 3:55 pm
by Tony Li
Hi,
To set up a bark UI to use a continue button, tick the Standard Bark UI component's Wait For Continue Button checkbox. Then add a continue button, and configure its OnClick() event to call StandardBarkUI.OnContinue.
To check if the current line is the last line of dialogue, check if DialogueManager.currentConversationState.hasAnyResponses is false.
Re: Using continue button with Bark UI
Posted: Sat Jun 24, 2023 2:16 am
by ds2497
It works! Thank you so much!
Re: Using continue button with Bark UI
Posted: Sat Jun 24, 2023 10:33 am
by Tony Li
Happy to help!
Re: Using continue button with Bark UI
Posted: Sat Feb 24, 2024 1:50 am
by zzzz
Tony Li wrote: ↑Fri Jun 23, 2023 3:55 pm
Hi,
To set up a bark UI to use a continue button, tick the Standard Bark UI component's Wait For Continue Button checkbox. Then add a continue button, and configure its OnClick() event to call StandardBarkUI.OnContinue.
To check if the current line is the last line of dialogue, check if DialogueManager.currentConversationState.hasAnyResponses is false.
Firstly thank you for the tool and support.
I've been trying to configure a NPC that barks and also uses the barkUI for conversations. I followed these instructions, but after the first line of dialogue, the bark UI is no longer visible. The only code inside StandardBarkUI.OnContinue is:
Code: Select all
public virtual void OnContinue()
{
Hide();
}
so I'm a bit lost.
Not sure if my setup is correct (I'm using TopDownEngine), I checked the EventSystem in Debug and it won't select the barkUI's Continue button as the active game object for some reason (works in other subtitle panels). Note that WaitForContinueButton is toggled on when conversations are started to allow both barking and using the barkUI as a subtitle panel. Do I need to configure something elsewhere?
Many thanks
-zzzz
Re: Using continue button with Bark UI
Posted: Sat Feb 24, 2024 9:29 am
by Tony Li
Hi,
I recommend using an overhead subtitle panel for conversations:
How To: Show Overhead Conversation Bubble Text. It'll make things much simpler in the long run. You can still use a bark UI for barks.