Custom UI changes

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
thecodehermit
Posts: 41
Joined: Mon Jul 19, 2021 11:27 am

Custom UI changes

Post by thecodehermit »

Hi Tony :roll:

I am trying to make a few modifications to the Scrolling Dialogue UI, but have been stuck searching for the correct files to do my changes, so maybe you can point me in the right direction.

I want to do several things:
1: I want the speaker portrait to ignore the 2 main characters. So that it wont change to the hero portrait/s when the current hero is talking.

To achieve that I was trying to find the function responsible for toggling the portraits and put an if statement with the heroes names. So that when the hero is talking the portrait will only show the NPC the hero is talking with.
The problem is I cant find that function in all the dialogue system files. I found a lot of places where the textures are initialized but not for when they change.

2: I want to be able to see the heroes dialogue in the Subtitle Panel. Currently only the NPCs dialogue is shown there.
Again as above, if I can find the file responsible for putting that text in the panel then I can most probably add the character decisions there too. Or maybe its just a boolean that does that and I just havent found it.
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom UI changes

Post by Tony Li »

Hi,
thecodehermit wrote: Sun Aug 08, 2021 9:29 am1: I want the speaker portrait to ignore the 2 main characters. So that it wont change to the hero portrait/s when the current hero is talking.
Inspect the dialogue UI's Subtitle Panel Info GameObject. Tick 'Only Show NPC Portraits'.
thecodehermit wrote: Sun Aug 08, 2021 9:29 am2: I want to be able to see the heroes dialogue in the Subtitle Panel.
Inspect the Dialogue Manager GameObject. Tick Display Settings > Subtitle Settings > Show PC Subtitles During Line, and untick Skip PC Subtitle After Response Menu.
thecodehermit
Posts: 41
Joined: Mon Jul 19, 2021 11:27 am

Re: Custom UI changes

Post by thecodehermit »

Ah you already had booleans for those.
(2) worked!
As for (1) it was already set to Only "Show NPC Portraits" but it still toggles the portraits. I checked the actors tab and both heroes are marked with "is Player" and the rest should be NPCs by default I guess.
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom UI changes

Post by Tony Li »

Hi,

Temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. Then play the scene and run through the conversation. Check the Console window's logs to make sure the player response nodes are really using the player actors.

Also, you may be looking at the response menu's portrait image. Inspect Response Menu Panel and unassign the PC Image and PC Name fields.
thecodehermit
Posts: 41
Joined: Mon Jul 19, 2021 11:27 am

Re: Custom UI changes

Post by thecodehermit »

As far as I understand from the logs "Hermit" is an actor. Here are the logs if you want to take a look.
Also after unassigning the PC Image and PC Name fields, now the actor portrait toggles only after you click on the hero dialogue options. Otherwise it stays on the NPC after it finishes talking. So we are getting closer.
aasd.png
aasd.png (165.74 KiB) Viewed 621 times
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom UI changes

Post by Tony Li »

Hi,

Is the only issue that the portrait image changes to the Hermit's portrait after you choose a Hermit response such as "No no, not at all"?

After you click a response such as "No no, not at all", is "No no, not at all" appended to the scrolling text? If not, double check that:
  • The Dialogue Manager's Subtitle Settings > Show PC Subtitles During Line is ticked
  • Skip PC Subtitle After Response menu is UNticked
  • Camera & Cutscene > Default Player Sequence is blank
  • The same Subtitle Panel Info is assigned to the Scrolling Dialogue UI > Standard Dialogue UI component's Conversation UI Elements> Default PC Subtitle Panel.
thecodehermit
Posts: 41
Joined: Mon Jul 19, 2021 11:27 am

Re: Custom UI changes

Post by thecodehermit »

Ah, nvm it works now. I was toggling some options to make it work and forgot to move them back. So unasigning the stuff from before worked. Sry and thanks
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom UI changes

Post by Tony Li »

No worries; glad it's working now!
Post Reply