Display portrait name in front of text panel

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
tenmus-kun
Posts: 4
Joined: Tue Oct 29, 2024 10:27 pm

Display portrait name in front of text panel

Post by tenmus-kun »

I would like to display the name of a portrait above a text panel, similar to the attached image, with the text panel in the foreground. However, I’m having trouble with the hierarchy structure and managing visibility controls. If anyone has implemented something like this before, I would greatly appreciate any advice. Thank you for this amazing addon.
Attachments
FGykSeaakAU52uy.jpg
FGykSeaakAU52uy.jpg (226.56 KiB) Viewed 832 times
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: Display portrait name in front of text panel

Post by Tony Li »

Hi,

Unity UI draws UI elements from the top of the hierarchy to the bottom, which means the last element in the hierarchy is drawn on top of everything else. You can move the portrait name to the bottom of the hierarchy:

portraitNameOnTop.png
portraitNameOnTop.png (72.27 KiB) Viewed 820 times
tenmus-kun
Posts: 4
Joined: Tue Oct 29, 2024 10:27 pm

Re: Display portrait name in front of text panel

Post by tenmus-kun »

Thank you for your answer!
Sorry for the basic question
I successfully solved the problem using the method you taught me. thank you!
tenmus-kun
Posts: 4
Joined: Tue Oct 29, 2024 10:27 pm

Re: Display portrait name in front of text panel

Post by tenmus-kun »

sorry
Let me ask you just one more question.

When a conversation begins, the player's name and NPC's name are displayed at the same time.

The attached image is a screenshot of the hierarchy, but is it still not possible to delete the ResponseMenuPanel?
Attachments
スクリーンショット 2024-10-30 231451.png
スクリーンショット 2024-10-30 231451.png (11.08 KiB) Viewed 810 times
スクリーンショット 2024-10-30 231432.png
スクリーンショット 2024-10-30 231432.png (146.24 KiB) Viewed 810 times
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: Display portrait name in front of text panel

Post by Tony Li »

Hi,

Set the subtitle panels' Visibility dropdowns to Until Superceded Or Menu Or Actor Change. This will make only one portrait name visible at a time.

The response menu panel should stay invisible unless the conversation needs to show a response menu.
tenmus-kun
Posts: 4
Joined: Tue Oct 29, 2024 10:27 pm

Re: Display portrait name in front of text panel

Post by tenmus-kun »

thank you!
I successfully solved it with that method!
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: Display portrait name in front of text panel

Post by Tony Li »

Glad to help!
Post Reply