Page 2 of 3

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Mon Jul 13, 2020 5:15 am
by lardmaster
Tony, this is awesome! Thanks so much this works great!

Quick question, is there a way to have the slide right / slide left animations play only when actors switch? For example i have the NPC say several lines in a row, and he does the animation every time he says another line instead of just when he's done talking and it switches over to the player. The typewriter effect also stops working if NPC says 2 consecutive lines in a row. Do u have pointers to make it so that typewriter effect works and that the portrait animation doesn't play if its the same person talking across 2 lines?

Here's the problem in action -



I rly appreciate all the help you've done!

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Mon Jul 13, 2020 1:26 pm
by Tony Li
Yes. Change the subtitle panels' Visibility dropdowns to Until Superceded. If that doesn't give you the effect that you want, just let me know.

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Mon Jul 13, 2020 6:32 pm
by lardmaster
Hi,

I changed the NPC subtitle panel to until superceded but now the NPC subtitle and portrait don't go away until after the entire conversation is over as opposed to when its not the NPCs turn to talk. This causes both portraits to show up and the NPC text to overlap with player subtitle text. How can I make it so that the NPC subtitle panel goes away when NPC is not talking but stays there when he is without playing the animation everytime he says multiple things in a row during a conversation?

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Mon Jul 13, 2020 9:57 pm
by Tony Li
Move the "Show" and "Hide" animation trigger names to the Standard UI Subtitle Panel components' Focus and Unfocus fields:

focusUnfocus.png
focusUnfocus.png (3.99 KiB) Viewed 1094 times

When a subtitle panel is superceded, it plays the Unfocus animation.

Here's an updated example:

DS_RiverCityGirlsStyle_2020-07-13.unitypackage

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Tue Jul 14, 2020 2:58 pm
by lardmaster
Hi, I followed what u said and got super close to what I wanted but the NPC now doesnt move completely out of frame for some reason. Do u have any ideas why this happens and how to fix it?

Here's what it looks like:


Besides that it works perfectly and thanks so much for all the help!

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Tue Jul 14, 2020 4:19 pm
by Tony Li
Hi,

The animation that I set up moves the right portrait image 160 pixels. If your image is bigger, you may need to adjust the animation or make your own in the Animation window.

Please also confirm that the animation works correctly in the example scene that I sent you.

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Wed Jul 15, 2020 2:20 pm
by lardmaster
Thanks so much, adjusting the position values above 160 in the animator made it work perfectly! Thanks so much for all your help and examples!

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Wed Jul 15, 2020 2:50 pm
by Tony Li
Glad to help! :-)

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Tue Jul 21, 2020 12:52 am
by lardmaster
Hi, so sorry to bother again but I've recently come across another problem that i haven't been able to solve similar to the last one except this time on the player character portrait instead of the npc portrait. The PC portrait recomes in everytime he says a new line. I have tried all the ways that made the NPC portrait work, however I realized that all my PC's dialogue was in the response menu and i also discovered that the response menu doesn't have an 'until superceded' option for visibility, so i was unable to solve it like u told me how to for the npc dialogue.

Here is the problem:


I tried to solve this by changing the PC dialogue to be PC subtitle as opposed to always use the response menu as shown here: https://www.pixelcrushers.com/phpbb/vie ... 20subtitle. However, I was unable to find the 'Always Force Response Menu' option referenced in the dialogue manager inspector window and was wondering if there was another way to accomplish that in the newer versions of this dialogue system.

Here is a picture of my inspector for the dialogue manager:
bug20.JPG
bug20.JPG (78.25 KiB) Viewed 1076 times
Lemme know if u have any way to solve this. Thank u so much in advance and for all the help u do!

Re: Adding Portraits to the Letterbox Dialogue UI Prefab

Posted: Tue Jul 21, 2020 9:12 am
by Tony Li
Hi,

Please take a look at this updated example:

DS_RiverCityGirlsStyle_2020-07-21.unitypackage

You're correct that the response menu doesn't have an "Until Superceded" option. In the example, I made these changes:
  • Ticked the Dialogue Manager's Subtitle Settings > Show PC Subtitles During Line.
  • Unticked Input Settings > Always Force Response Menu.
  • Added a player node with "[f]" so it forces the response menu to appear.
  • Added other player nodes without "[f]" that play using the PC Subtitle Panel instead of the Response Menu Panel.
  • Updated the PC Subtitle Panel, which I hadn't set up previously in the example.