Dialogue UI flicker in conversation between two NPCs

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
urrmurrmur
Posts: 47
Joined: Wed May 05, 2021 1:57 pm

Dialogue UI flicker in conversation between two NPCs

Post by urrmurrmur »

Hi,

I have an issue when running a conversation between two NPCs. Whenever a new statement is loaded, the subtitle panel appears to flicker. I assume this is because it is updated twice, once for each NPC. The issue does not appear in a conversation between the player and an NPC.

I made a short video to demonstrate the issue. My Dialogue System configuration settings are also visible in the video, at least the ones that I think are relevant.

Is there any way around this, other than artifically marking one of the NPCs as player?
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI flicker in conversation between two NPCs

Post by Tony Li »

Hi,

Try changing your NPC Subtitle Panel's Visibility dropdown to Always Once Shown or Until Superceded.
urrmurrmur
Posts: 47
Joined: Wed May 05, 2021 1:57 pm

Re: Dialogue UI flicker in conversation between two NPCs

Post by urrmurrmur »

Thanks Tony. Switching it to 'Until Superceded' fixes the flicker, but now the panel stays visible while a PC response menu is showing, which I don't want (and wasn't the case before). I assume there's some combination of Dialogue UI and Dialogue Manager settings that will fix this, but I can't seem to figure it out.
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI flicker in conversation between two NPCs

Post by Tony Li »

Hi,

Try this: Configure the response panel's OnOpen() event to call the subtitle panel's Close() method.
urrmurrmur
Posts: 47
Joined: Wed May 05, 2021 1:57 pm

Re: Dialogue UI flicker in conversation between two NPCs

Post by urrmurrmur »

That did the trick, thanks!
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI flicker in conversation between two NPCs

Post by Tony Li »

Glad to help!
Post Reply