Control text size

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ingot
Posts: 8
Joined: Sun Feb 21, 2016 3:29 pm

Control text size

Post by Ingot »

Using the Necromancer legacy GUI, how can I adjust the text sizes for the fonts?
I have tried adjusting corresponding GUILabel script rect sizes, but cannot get the
NPC text and the player response buttons to be larger.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Control text size

Post by Tony Li »

Hi,

Legacy GUI fonts are controlled by GUI Skins. For the Necromancer GUI, inspect Assets/Dialogue System/Prefabs/Legacy Unity GUI Prefabs/Necromancer/Necromancer GUI/NecromancerGUI.

For the response button, expand the Button style and set Font Size. The value is initially 0, which uses the default size of the font. You might try setting it to something like 20 or 24 to start with.

For the subtitles (NPC text), expand Custom Styles > PlainText.

If the GUI is in your Hierarchy, you can activate the Necromancer Dialogue UI/GUI Root and Dialogue Window GameObjects to see how the font sizes change as you edit the GUI Skin.
Ingot
Posts: 8
Joined: Sun Feb 21, 2016 3:29 pm

Re: Control text size

Post by Ingot »

Very good, thank you.

I also moved the initial position for the NPC text line to the right.
Can you tell me why it types in the right position, but after the
delay and the player response button appears, it jumps to the
left edge of the GUI panel?
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Control text size

Post by Tony Li »

Hi,

Move the NPC Subtitle Reminder to the right, too.

When the NPC is delivering a line, the NPC Subtitle Line is visible.

When the response menu is up, the Subtitle Reminder is visible.

If you want them to look like the same thing, position them in the same place. Some designers want the reminder to look different from the subtitle line -- for example, tucked away in a smaller font to give more focus to the response menu.

This manual page describes when each UI element is active: When UI Elements Are Active
Ingot
Posts: 8
Joined: Sun Feb 21, 2016 3:29 pm

Re: Control text size

Post by Ingot »

Thank you for getting me on track.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Control text size

Post by Tony Li »

Happy to help!
Post Reply