Continue Button position and Speech Bubble Dialogue Delays

Announcements, support questions, and discussion for the Dialogue System.
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Continue Button position and Speech Bubble Dialogue Delays

Post by Escara »

Hi Tony.

A few questions please:

1. I'm using new designs for the speech bubbles. But I'm having trouble positioning the continue button (the 'X' in the screenshot) to the top right corner of the speech bubble. The screenshot will hopefully show you enough of my current set up. The Rect Transform appears to be greyed out so I can't move it. Any suggestions?

https://www.dropbox.com/s/4pjlxe12jrllk ... 0.png?dl=0

2. Also is there a way to have both pressing the a letter on the keyboard (I've already set this up and it works) to continue and to left click with a mouse on the 'X'?

3. When my Player examines objects, she'll often say a few lines that appear on separate speech bubbles. However, there seems to be a flash of the bubble that appears and disappears very quickly just before the next bubble appears. This happens when using the continue button. So, within the actual dialogue action list, do I need to add that Delay Sequence message for each line or is something else needed? The Standard UI Continue Button Fast Forward script is on the continue button with the Typewriter Effect.

https://www.dropbox.com/s/7h26c9a95mw3y ... 2.png?dl=0

Thank you in advance :)
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue Button position and Speech Bubble Dialogue Delays

Post by Tony Li »

Hi Caroline,
Escara wrote: Thu Jan 10, 2019 2:17 pm1. I'm using new designs for the speech bubbles. But I'm having trouble positioning the continue button (the 'X' in the screenshot) to the top right corner of the speech bubble. The screenshot will hopefully show you enough of my current set up. The Rect Transform appears to be greyed out so I can't move it. Any suggestions?
The Bubble Panel GameObject has a Vertical Layout Group component that stacks its children vertically. If you remove this component, you can move the continue button.
Escara wrote: Thu Jan 10, 2019 2:17 pm2. Also is there a way to have both pressing the a letter on the keyboard (I've already set this up and it works) to continue and to left click with a mouse on the 'X'?
Yes. From your second screenshot, your continue button already has a UI Button Key Trigger component which maps hotkeys to the button. Currently it's mapped to the space key and the Unity Input definition "Space". You can change Unity Input definitions with Edit > Project Settings > Input. Make sure your continue button's OnClick() event is configured to either run the dialogue UI's OnContinue method or the Standard UI Continue Button Fast Forward component's OnFastForward method as is already configured in your screenshot. Also assign the continue button to the subtitle panel component's Continue Button field so the subtitle panel will know about it.
Escara wrote: Thu Jan 10, 2019 2:17 pm3. When my Player examines objects, she'll often say a few lines that appear on separate speech bubbles. However, there seems to be a flash of the bubble that appears and disappears very quickly just before the next bubble appears. This happens when using the continue button. So, within the actual dialogue action list, do I need to add that Delay Sequence message for each line or is something else needed? The Standard UI Continue Button Fast Forward script is on the continue button with the Typewriter Effect.
That's an animation issue. The subtitle panel is trying to play the unfocus animation for the previous line while also playing the focus animation for the next line. Try clearing the subtitle panel's Focus Animation Trigger and Unfocus Animation Trigger fields. That way it will just cleanly switch from one line to the next.
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Continue Button position and Speech Bubble Dialogue Delays

Post by Escara »

Thank you, so speedy!!!

I'll make those changes.

One final thing. I've been using a couple of scenes to test things out. I pretty much like my set up in one scene (Scene 1). So I ensured all changes I made were applied to the prefab. I also saved my own version of the DM prefab to avoid confusion. Deleted the Player prefabs and the DM in the Hierachy in the second scene. Everything works fine in the first scene, and I've left my update DM there. However, when I press play and navigate my player to the next scene I have a few oddities.

1. When clicking on an object, my player does the talking animation but no speech bubble appears. I pause the game, select the scene and the bubble is visible there so confused as to why it's not showing in play mode especially as it works fine in the first scene?

2. Additionally to the previous issue, my response panel flashes for a second and disappears again. It has to be linked? I'm really confused as I would presume it would look for my DM and Player prefabs?
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue Button position and Speech Bubble Dialogue Delays

Post by Tony Li »

Escara wrote: Thu Jan 10, 2019 3:57 pm1. When clicking on an object, my player does the talking animation but no speech bubble appears. I pause the game, select the scene and the bubble is visible there so confused as to why it's not showing in play mode especially as it works fine in the first scene?
Is the UI Camera missing from the second scene? You could always make the UI Camera a child of the Dialogue Manager so it survives scene changes. Or save the UI Camera as a prefab and add it manually to each scene. Whichever you prefer.
Escara wrote: Thu Jan 10, 2019 3:57 pm2. Additionally to the previous issue, my response panel flashes for a second and disappears again. It has to be linked? I'm really confused as I would presume it would look for my DM and Player prefabs?
I'm not sure this is linked. In AC's main editor window's Settings section, is your up-to-date player prefab assigned?

Is the response panel also a bubble UI?
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Continue Button position and Speech Bubble Dialogue Delays

Post by Escara »

1. I set up the camera UI for that scene too as you mentioned previously so yes. I'll try your suggestions and see if that fixes it.

2. Yes, it's definitely assigned, triple checked that.

I put it together using the Basic UI.

https://www.dropbox.com/s/np9y3fmghbs0w ... 1.png?dl=0
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Continue Button position and Speech Bubble Dialogue Delays

Post by Escara »

Solved the bubble not appearing. I had the UI camera set to perspective and not orthographic. Although the Response panel does flash onscreen for a split second still.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue Button position and Speech Bubble Dialogue Delays

Post by Tony Li »

In your response panel prefab, try setting the Main Panel inactive.
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Continue Button position and Speech Bubble Dialogue Delays

Post by Escara »

Yes, that did it. Thanks once again! Have a great weekend.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue Button position and Speech Bubble Dialogue Delays

Post by Tony Li »

You too!
chrislow19
Posts: 34
Joined: Mon Dec 30, 2019 4:26 pm

Re: Continue Button position and Speech Bubble Dialogue Delays

Post by chrislow19 »

Hi Tony, I seem to be having the same animation issue that's described in question 3 here. As far as it being an animation issue, the subtitle panel's Focus Animation Trigger and Unfocus Animation Trigger fields are both already clear.
Untitled-2.png
Untitled-2.png (204.49 KiB) Viewed 1343 times
Post Reply