Page 1 of 1

Not disabling NPC Portrait after clicking Continue button to advance to response menu

Posted: Tue Feb 12, 2019 1:15 pm
by destrucity
I picked back up an old project and upgraded to 2018.3 and Dialogue System 2.1.0 from 1.x. This problem did not occur in the previous version of the game.

I've noticed behavior where when I click my Continue button, the NPC portrait disables itself if displaying the response menu is next.

If there is no response menu next, or if I do not click the Continue button, the portrait GameObject will remain enabled.

Here is a video of the issue:
In the video, the Continue button is invisible and takes up the whole screen. The first time speaking to the NPC functions correctly (I'm not pressing the continue button until the typewriter effect has completed, or letting the response menu automatically display). The player character intentionally has no portrait.

The second time speaking to the NPC, I press the Continue button to advance the dialog, and the NPC portrait disappears (not desired).

Here is a link to my DialogueSystemController settings in the inspector. Let me know if any settings that might not be visible are relevant and I will happily find those details: https://i.imgur.com/a4Og330.png

Is this a setting I'm missing or misunderstanding? Any help is much appreciated.

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Posted: Tue Feb 12, 2019 2:00 pm
by Tony Li
Hi,

Does your dialogue UI use the UnityUIDialogueUI script, the StandardUIDialogueUI script, or another script? The step to address that should be pretty simple, but it depends on which dialogue UI script you're using.

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Posted: Tue Feb 12, 2019 2:12 pm
by destrucity
I appreciate the reply.

I am indeed using the UnityUIDialogueUI as seen here: https://i.imgur.com/6gbSsR3.png

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Posted: Tue Feb 12, 2019 3:23 pm
by Tony Li
Hi,

Is the NPC's Portrait Image also assigned to Response Menu > Subtitle Reminder > Portrait Image?

If not, please try assigning it.

If it's already assigned, check the conversation's Sequence fields for any SetPortrait() sequencer commands.

BTW, interesting-looking game. Any info available on it?

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Posted: Tue Feb 12, 2019 6:54 pm
by destrucity
The Response Menu > Subtitle Reminder > Portrait Image is indeed assigned: https://i.imgur.com/f9Te6F8.png

Here are links to images of the conversation's setup, which I don't believe involves any SetPortrait (or other) sequencer commands: I should note that this occurs with any conversation in my game that has a response menu (as far as I can tell).

Thanks again and glad to hear the game looks interesting to you! The demo of the old version is here https://nightcity.itch.io/bottleworks. I'm hoping to get an actual game made out of it by the end of summerish, but you know how unpaid part time stuff goes :)

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Posted: Tue Feb 12, 2019 8:41 pm
by Tony Li
UnityUIDialogueUI did change slightly in 2.x. (The change was actually in a later version of 1.x, but it changed nevertheless). The order of showing and hiding changed to better accommodate animation, but in this instance the continue button hides the portrait image and portrait name just after the subtitle reminder activates it.

There are two quick ways to fix it:

1. Set the NPC and PC Subtitle sections' Visibility to Until Superceded, and unassign the Subtitle Reminder fields. This works if the NPC and PC Subtitle sections both use all the same elements -- portrait image, portrait name, and subtitle line.

2. Otherwise, instead of #1, duplicate the Portrait Image and Portrait Name fields. Assign the duplicates to the Subtitle Reminder section. Leave Visibility at Only During Content. Here's an example of this approach:

destrucityExample_2019-02-12.unitypackage

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Posted: Tue Feb 12, 2019 8:48 pm
by Tony Li
p.s. - Thanks for the link! I bookmarked it to check it out this weekend.

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Posted: Wed Feb 13, 2019 9:23 am
by destrucity
I went for option 1 which seems to have worked like a charm. Thanks again, and if you try out the game I'd love to know your feedback!