Page 1 of 1

Control text size

Posted: Sun Feb 21, 2016 3:32 pm
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.

Re: Control text size

Posted: Sun Feb 21, 2016 5:27 pm
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.

Re: Control text size

Posted: Sun Feb 21, 2016 6:02 pm
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?

Re: Control text size

Posted: Sun Feb 21, 2016 6:51 pm
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

Re: Control text size

Posted: Sun Feb 21, 2016 11:42 pm
by Ingot
Thank you for getting me on track.

Re: Control text size

Posted: Mon Feb 22, 2016 8:39 am
by Tony Li
Happy to help!