About the dialogue text

Announcements, support questions, and discussion for the Dialogue System.
HaiiroMukuro
Posts: 80
Joined: Sun Jul 17, 2016 3:38 pm

About the dialogue text

Post by HaiiroMukuro »

Good day! :D
Where I can change the size, the color and the alignment of the dialogue text here?
Image
User avatar
Tony Li
Posts: 21069
Joined: Thu Jul 18, 2013 1:27 pm

Re: About the dialogue text

Post by Tony Li »

Hi,

Expand Top Left and increase the value of:
  • Font Size: To change the font size.
  • Alignment: To change the alignment.
  • Normal: (Expand the foldout) To change the color.
Image
You can even change this at runtime while your game is playing. It's an easy way to see a live view of how it will look. The GUISkin will remember the changes when you stop playing.
HaiiroMukuro
Posts: 80
Joined: Sun Jul 17, 2016 3:38 pm

Re: About the dialogue text

Post by HaiiroMukuro »

Thanks :D
Can I also change the sprite for the portraits?
And also for the alert messages?
User avatar
Tony Li
Posts: 21069
Joined: Thu Jul 18, 2013 1:27 pm

Re: About the dialogue text

Post by Tony Li »

Of course! I'm assuming you're using the JRPG Dialiogue UI, but the idea is similar for any of the legacy Unity GUIs:

To change the alert appearance:
  • Inspect GUIRoot > Alert Panel.
  • The child GameObject named Alert uses the GUI Style "Middle Center". You can change this or assign a different GUI Style to the Gui Style Name field.
  • The panel itself uses a window GUI Style named "Panel". You can change this or assign a different GUI Style to the Gui Style Name field.
To change the portrait image appearance:
  • Inspect GUIRoot > Dialogue Panel > Portrait Panel.
  • The Portrait Panel uses the same GUI Style as the Alert Panel ("Panel"). You can also change the size and position of any of these panels by editing the Scaled Rect section.
  • To use a different portrait for each character, make sure you've assigned portrait images in the Actors section of the dialogue database.
HaiiroMukuro
Posts: 80
Joined: Sun Jul 17, 2016 3:38 pm

Re: About the dialogue text

Post by HaiiroMukuro »

Yes, I copy the JRPG UI from Legacy Prefabs. :D
HaiiroMukuro
Posts: 80
Joined: Sun Jul 17, 2016 3:38 pm

Re: About the dialogue text

Post by HaiiroMukuro »

Hello, I still have a question. How can I change the text "Continue" inside the continue button?
User avatar
Tony Li
Posts: 21069
Joined: Thu Jul 18, 2013 1:27 pm

Re: About the dialogue text

Post by Tony Li »

Hi,

Expand GUIRoot > Dialogue Panel > Text Panel and inspect Continue Button. Change the Text field:

Image

If you're localizing to multiple languages, the value of Text is the field name used in the Localized Text Table.
HaiiroMukuro
Posts: 80
Joined: Sun Jul 17, 2016 3:38 pm

Re: About the dialogue text

Post by HaiiroMukuro »

Thank you! :D
User avatar
Tony Li
Posts: 21069
Joined: Thu Jul 18, 2013 1:27 pm

Re: About the dialogue text

Post by Tony Li »

Happy to help!
HaiiroMukuro
Posts: 80
Joined: Sun Jul 17, 2016 3:38 pm

Re: About the dialogue text

Post by HaiiroMukuro »

Hi, I still have a question, how to change the Alert Message UI?
Post Reply